---
type: Use Case
title: Intensity on a dark background
description: Images or heatmaps shown on a black or dark canvas, such as astronomical images, where the lowest values should blend into the background.
tags:
  - use-case
  - sequential
x-colorcurious-slug: dark-background-intensity
x-colorcurious-colormap-type: sequential
x-colorcurious-synonyms:
  - astronomy
  - astronomical image
  - dark mode
  - black background
  - emission
  - luminosity
  - dark canvas
x-colorcurious-recommended:
  - colorcet.fire
  - matplotlib.inferno
  - matplotlib.cubehelix
x-colorcurious-data: https://colorcurio.us/data/use-cases.json#dark-background-intensity
---

# Intensity on a dark background

> Images or heatmaps shown on a black or dark canvas, such as astronomical images, where the lowest values should blend into the background.

Required colormap type: **sequential**. Also known as: astronomy, astronomical image, dark mode, black background, emission, luminosity, dark canvas.

## Constraints

A map must be sequential and pass every test below. Fields are paths in [catalog.json](https://colorcurio.us/data/catalog.json) entries.

- `perceptual.lightness.monotonic` = true — Brighter must mean more.
- `perceptual.lightness.min` ≤ 0.1 — The low end must be near-black so it recedes into a dark background.
- `cvd.protan.monotonic_lightness`, `cvd.deutan.monotonic_lightness`, `cvd.tritan.monotonic_lightness` = true — Lightness must still run one way after simulating protan, deutan and tritan color vision, so the order of values survives.

## Direction

Low values dark, so they sink into the background. A recommendation marked "use reversed" is stored the other way round: read its stops from last to first.

## Recommended

1. [Fire](../colormaps/colorcet.fire.md) (`colorcet.fire`): Black-red-yellow-white map designed for dark canvases; lightness spans 0–1. Low end #000000, high end #ffffff. License: CC-BY-4.0. Stops: [JSON](https://colorcurio.us/data/colormaps/colorcet.fire.json).
2. [Inferno](../colormaps/matplotlib.inferno.md) (`matplotlib.inferno`): Starts near black (lightness 0.05), monotonic, CVD order preserved. Low end #000004, high end #fcffa4. License: matplotlib (BSD-derived). Stops: [JSON](https://colorcurio.us/data/colormaps/matplotlib.inferno.json).
3. [Cubehelix](../colormaps/matplotlib.cubehelix.md) (`matplotlib.cubehelix`): Dave Green's 2011 astronomy ramp from black to bright; monotonic lightness. Low end #000000, high end #ffffff. License: matplotlib (BSD-derived). Stops: [JSON](https://colorcurio.us/data/colormaps/matplotlib.cubehelix.json).

## Other maps that pass

53 other sequential maps pass the constraints (not reviewed for this task; maps under Avoid are left out): `cmasher.amber`, `cmasher.amethyst`, `cmasher.apple`, `cmasher.arctic`, `cmasher.chroma`, `cmasher.cosmic`, `cmasher.dusk`, `cmasher.eclipse`, `cmasher.ember`, `cmasher.emerald`, `cmasher.flamingo`, `cmasher.freeze`, `cmasher.ghostlight`, `cmasher.gothic`, `cmasher.jungle`, `cmasher.lavender`, `cmasher.lilac`, `cmasher.neutral`, `cmasher.nuclear`, `cmasher.rainforest`, `cmasher.sapphire`, `cmasher.savanna`, `cmasher.sepia`, `cmasher.sunburst`, `cmasher.swamp`, `cmasher.torch`, `cmasher.toxic`, `cmasher.tree`, `cmasher.voltage`, `cmocean.gray`, `colorbrewer.Greys`, `colorcet.CET-L1`, `colorcet.kb`, `colorcet.kg`, `colorcet.kr`, `colorcet.kry-pure`, `crameri.grayC`, `crameri.oslo`, `matplotlib.afmhot`, `matplotlib.bone`, `matplotlib.copper`, `matplotlib.gist_earth`, `matplotlib.hot`, `matplotlib.magma`, `matplotlib.ocean`, `matplotlib.pink`, `moreland.black-body`, `paraview.2hot`, `paraview.black-blue-white`, `paraview.black-body-radiation`, `paraview.black-orange-white`, `paraview.heated-object`, `vispy.hot`.

## See also

- [Generic sequential magnitude](sequential-magnitude.md)
