#040804

Closest named color: Almost Black (#070D0D). oklch(12.6% 0.015 144.6), rgb(4, 8, 4).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessvery dark (13%)
Chromaclose to neutral grey (0.015)
Temperatureneutral
Nearest nameAlmost Black (#070D0D)
Black text1.04:1
White text20.16:1

Values

HEX#040804
RGBrgb(4, 8, 4)
HSLhsl(120, 33%, 2%)
OKLCHoklch(12.6% 0.015 144.6)

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 #040804 20.16:1 AAA Lc -107.8 Preferred for body text
Black text on #040804 1.04:1 Fails Lc 0.0 Not readable
#040804 text on white 20.16:1 AAA Lc 106.0 Preferred for body text
#040804 text on black 1.04: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

    #F4F6F4

    oklch(97.1% 0.003 145.5)

  2. Step 100

    100

    #E8EBE8

    oklch(93.7% 0.005 145.5)

  3. Step 200

    200

    #D5DBD5

    oklch(88.5% 0.01 145.5)

  4. Step 300

    300

    #BAC4BA

    oklch(81% 0.018 145.4)

  5. Step 400

    400

    #96A696

    oklch(70.8% 0.029 145.3)

  6. Step 500

    500

    #7C907C

    oklch(63.2% 0.037 145.1)

  7. Step 600

    600

    #657A65

    oklch(55.6% 0.04 145)

  8. Step 700

    700

    #546754

    oklch(49.2% 0.038 145)

  9. Step 800

    800

    #455445

    oklch(42.8% 0.031 145)

  10. Step 900

    900

    #3A453A

    oklch(37.7% 0.023 145.1)

  11. Step 950

    950 (this color)

    #040804

    oklch(12.6% 0.015 144.6)

Export this scale for Tailwind in the Tailwind colors tool

#040804 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)#0807040.012
Deuteranopia (no green cones)#0707040.010
Tritanopia (no blue cones)#0408070.009
Achromatopsia (no color)#0707070.015

Harmonies

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

Complementary

The opposite hue (180°).

  • #040804

    #040804

    oklch(12.6% 0.015 144.6)

  • #09050A

    #09050A

    oklch(12.5% 0.016 320.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040804

    #040804

    oklch(12.6% 0.015 144.6)

  • #060703

    #060703

    oklch(12.5% 0.013 118)

  • #020806

    #020806

    oklch(12.4% 0.016 174.8)

Open the analogous palette in the generator

Split complementary

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

  • #040804

    #040804

    oklch(12.6% 0.015 144.6)

  • #07060C

    #07060C

    oklch(12.7% 0.015 293.1)

  • #0B0507

    #0B0507

    oklch(12.7% 0.014 354.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040804

    #040804

    oklch(12.6% 0.015 144.6)

  • #04070C

    #04070C

    oklch(12.7% 0.014 254)

  • #0C0504

    #0C0504

    oklch(12.7% 0.016 31.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040804

    #040804

    oklch(12.6% 0.015 144.6)

  • #03070B

    #03070B

    oklch(12.4% 0.014 239.9)

  • #09050A

    #09050A

    oklch(12.5% 0.016 320.5)

  • #0B0503

    #0B0503

    oklch(12.4% 0.015 47)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #040804 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.