#040F09

Closest named color: Almost Black (#070D0D). oklch(15.4% 0.022 161.4), rgb(4, 15, 9).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessvery dark (15%)
Chromaclose to neutral grey (0.022)
Temperatureneutral
Nearest nameAlmost Black (#070D0D)
Black text1.07:1
White text19.49:1

Values

HEX#040F09
RGBrgb(4, 15, 9)
HSLhsl(147, 58%, 4%)
OKLCHoklch(15.4% 0.022 161.4)

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 #040F09 19.49:1 AAA Lc -107.6 Preferred for body text
Black text on #040F09 1.07:1 Fails Lc 0.0 Not readable
#040F09 text on white 19.49:1 AAA Lc 105.7 Preferred for body text
#040F09 text on black 1.07: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

    #F3F6F5

    oklch(97.1% 0.003 174.5)

  2. Step 100

    100

    #E6EBE8

    oklch(93.5% 0.007 160.1)

  3. Step 200

    200

    #D1DCD6

    oklch(88.4% 0.014 162.4)

  4. Step 300

    300

    #B2C6BB

    oklch(80.8% 0.027 161.8)

  5. Step 400

    400

    #8AA998

    oklch(70.6% 0.042 161.1)

  6. Step 500

    500

    #6C947F

    oklch(63.1% 0.054 161.4)

  7. Step 600

    600

    #537E68

    oklch(55.5% 0.059 161.4)

  8. Step 700

    700

    #436B57

    oklch(49.2% 0.056 161.7)

  9. Step 800

    800

    #385747

    oklch(42.7% 0.046 161.2)

  10. Step 900

    900

    #30483C

    oklch(37.8% 0.036 162.3)

  11. Step 950

    950 (this color)

    #040F09

    oklch(15.4% 0.022 161.4)

Export this scale for Tailwind in the Tailwind colors tool

#040F09 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)#0F0D090.023
Deuteranopia (no green cones)#0D0C090.021
Tritanopia (no blue cones)#020F0D0.009
Achromatopsia (no color)#0D0D0D0.023

Harmonies

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

Complementary

The opposite hue (180°).

  • #040F09

    #040F09

    oklch(15.4% 0.022 161.4)

  • #13080F

    #13080F

    oklch(15.4% 0.024 341.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040F09

    #040F09

    oklch(15.4% 0.022 161.4)

  • #090E05

    #090E05

    oklch(15.5% 0.022 130.3)

  • #020F0E

    #020F0E

    oklch(15.4% 0.022 189.6)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #040F09

    #040F09

    oklch(15.4% 0.022 161.4)

  • #0F0913

    #0F0913

    oklch(15.3% 0.023 311.3)

  • #14080A

    #14080A

    oklch(15.4% 0.022 8.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040F09

    #040F09

    oklch(15.4% 0.022 161.4)

  • #0A0B15

    #0A0B15

    oklch(15.4% 0.021 279.2)

  • #140905

    #140905

    oklch(15.5% 0.022 45)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040F09

    #040F09

    oklch(15.4% 0.022 161.4)

  • #050D15

    #050D15

    oklch(15.5% 0.022 246.5)

  • #13080F

    #13080F

    oklch(15.4% 0.024 341.4)

  • #120A03

    #120A03

    oklch(15.3% 0.023 69.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #040F09 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.