#040C0C

Closest named color: Almost Black (#070D0D). oklch(14.5% 0.014 195.7), rgb(4, 12, 12).

Aa

White text reads best on this color (19.75:1).

About this color

#040C0C is a very dark close to neutral grey. In OKLCH its lightness is 14%, its chroma 0.014. It has too little chroma to lean warm or cool. The nearest named color is Almost Black (#070D0D), ΔE 0.009 away. White text reads best on it, at 19.75:1.

Hue familyNeutrals
Lightnessvery dark (14%)
Chromaclose to neutral grey (0.014)
Temperatureneutral
Nearest nameAlmost Black (#070D0D)
Black text1.06:1
White text19.75:1

Values

HEX#040C0C
RGBrgb(4, 12, 12)
HSLhsl(180, 50%, 3%)
OKLCHoklch(14.5% 0.014 195.7)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #040C0C 19.75:1 AAA Lc -107.7 Preferred for body text
Black text on #040C0C 1.06:1 Fails Lc 0.0 Not readable
#040C0C text on white 19.75:1 AAA Lc 105.8 Preferred for body text
#040C0C text on black 1.06:1 Fails Lc 0.0 Not readable

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 950.

  1. Step 50

    50

    #F4F6F6

    oklch(97.2% 0.002 197.1)

  2. Step 100

    100

    #E6EBEB

    oklch(93.6% 0.005 197.1)

  3. Step 200

    200

    #D2DBDB

    oklch(88.5% 0.01 197)

  4. Step 300

    300

    #B5C4C4

    oklch(80.9% 0.016 196.8)

  5. Step 400

    400

    #8EA6A6

    oklch(70.7% 0.027 196.6)

  6. Step 500

    500

    #719090

    oklch(63% 0.035 196.3)

  7. Step 600

    600

    #597B7A

    oklch(55.7% 0.039 193.8)

  8. Step 700

    700

    #496767

    oklch(49% 0.035 196.1)

  9. Step 800

    800

    #3C5454

    oklch(42.6% 0.029 196.1)

  10. Step 900

    900

    #344645

    oklch(37.8% 0.023 192)

  11. Step 950

    950 (this color)

    #040C0C

    oklch(14.5% 0.014 195.7)

Export this scale for Tailwind in the Tailwind colors tool

#040C0C with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#0B0B0C0.015
Deuteranopia (no green cones)#090A0C0.013
Tritanopia (no blue cones)#020D0C0.006
Achromatopsia (no color)#0A0A0A0.014

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

This color is close to neutral, so it has no meaningful hue to rotate. Hue harmonies are omitted.

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #040C0C, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #040C0C in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.