#040D02

Closest named color: Almost Black (#070D0D). oklch(14.4% 0.033 137.9), rgb(4, 13, 2).

Aa

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

About this color

#040D02 is a very dark, muted green. In OKLCH its lightness is 14%, its chroma 0.033 and its hue 138°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Almost Black (#070D0D), ΔE 0.030 away. White text reads best on it, at 19.74:1.

Hue familyGreens
Lightnessvery dark (14%)
Chromamuted (0.033)
Temperaturein between
Nearest nameAlmost Black (#070D0D)
Black text1.06:1
White text19.74:1

Values

HEX#040D02
RGBrgb(4, 13, 2)
HSLhsl(109, 73%, 3%)
OKLCHoklch(14.4% 0.033 137.9)

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 #040D02 19.74:1 AAA Lc -107.7 Preferred for body text
Black text on #040D02 1.06:1 Fails Lc 0.0 Not readable
#040D02 text on white 19.74:1 AAA Lc 105.8 Preferred for body text
#040D02 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

    #F4F6F3

    oklch(97.1% 0.004 134.8)

  2. Step 100

    100

    #E6ECE4

    oklch(93.6% 0.012 137.8)

  3. Step 200

    200

    #D2DDCF

    oklch(88.5% 0.022 139)

  4. Step 300

    300

    #B5C7AF

    oklch(80.9% 0.039 137.8)

  5. Step 400

    400

    #8EAA84

    oklch(70.6% 0.062 137.5)

  6. Step 500

    500

    #719565

    oklch(63% 0.08 138)

  7. Step 600

    600

    #597F4C

    oklch(55.5% 0.087 138)

  8. Step 700

    700

    #496C3D

    oklch(49.2% 0.082 138)

  9. Step 800

    800

    #3C5833

    oklch(42.8% 0.068 138.3)

  10. Step 900

    900

    #34482D

    oklch(37.7% 0.051 137.8)

  11. Step 950

    950 (this color)

    #040D02

    oklch(14.4% 0.033 137.9)

Export this scale for Tailwind in the Tailwind colors tool

#040D02 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)#0E0B010.022
Deuteranopia (no green cones)#0C0A020.021
Tritanopia (no blue cones)#040C0A0.024
Achromatopsia (no color)#0A0A0A0.033

Harmonies

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

Complementary

The opposite hue (180°).

  • #040D02

    #040D02

    oklch(14.4% 0.033 137.9)

  • #100613

    #100613

    oklch(14.6% 0.033 318.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040D02

    #040D02

    oklch(14.4% 0.033 137.9)

  • #0B0B00

    #0B0B00

    oklch(14.5% 0.032 109.8)

  • #000E08

    #000E08

    oklch(14.5% 0.029 168.3)

Open the analogous palette in the generator

Split complementary

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

  • #040D02

    #040D02

    oklch(14.4% 0.033 137.9)

  • #090717

    #090717

    oklch(14.2% 0.035 287.6)

  • #14050C

    #14050C

    oklch(14.6% 0.032 350.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040D02

    #040D02

    oklch(14.4% 0.033 137.9)

  • #030A17

    #030A17

    oklch(14.4% 0.032 256.8)

  • #150505

    #150505

    oklch(14.5% 0.031 21.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040D02

    #040D02

    oklch(14.4% 0.033 137.9)

  • #000C13

    #000C13

    oklch(14.4% 0.028 227.8)

  • #100613

    #100613

    oklch(14.6% 0.033 318.5)

  • #150601

    #150601

    oklch(14.6% 0.033 50.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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