#042A08

Closest named color: Dark Forest Green (#002D04). oklch(25% 0.072 144.8), rgb(4, 42, 8).

Aa

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

About this color

#042A08 is a very dark, moderately saturated green. In OKLCH its lightness is 25%, its chroma 0.072 and its hue 145°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Forest Green (#002D04), ΔE 0.014 away. White text reads best on it, at 15.67:1.

Hue familyGreens
Lightnessvery dark (25%)
Chromamoderately saturated (0.072)
Temperaturein between
Nearest nameDark Forest Green (#002D04)
Black text1.33:1
White text15.67:1

Values

HEX#042A08
RGBrgb(4, 42, 8)
HSLhsl(126, 83%, 9%)
OKLCHoklch(25% 0.072 144.8)

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 #042A08 15.67:1 AAA Lc -105.0 Preferred for body text
Black text on #042A08 1.33:1 Fails Lc 0.0 Not readable
#042A08 text on white 15.67:1 AAA Lc 102.4 Preferred for body text
#042A08 text on black 1.33: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

    #F1F8F1

    oklch(97.2% 0.012 145.5)

  2. Step 100

    100

    #E0EFE0

    oklch(93.7% 0.026 145.4)

  3. Step 200

    200

    #C7E2C6

    oklch(88.5% 0.048 144.2)

  4. Step 300

    300

    #9ED09F

    oklch(81% 0.086 145.2)

  5. Step 400

    400

    #65B769

    oklch(70.8% 0.137 145)

  6. Step 500

    500

    #2FA33D

    oklch(63% 0.174 144.9)

  7. Step 600

    600

    #008C23

    oklch(55.6% 0.175 144.9)

  8. Step 700

    700

    #00761C

    oklch(49.2% 0.155 144.9)

  9. Step 800

    800

    #006115

    oklch(42.8% 0.135 144.8)

  10. Step 900

    900

    #075013

    oklch(37.6% 0.114 144.7)

  11. Step 950

    950 (this color)

    #042A08

    oklch(25% 0.072 144.8)

Export this scale for Tailwind in the Tailwind colors tool

#042A08 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)#2B25050.054
Deuteranopia (no green cones)#26220B0.053
Tritanopia (no blue cones)#0029230.044
Achromatopsia (no color)#2323230.073

Harmonies

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

Complementary

The opposite hue (180°).

  • #042A08

    #042A08

    oklch(25% 0.072 144.8)

  • #321334

    #321334

    oklch(25% 0.072 325.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #042A08

    #042A08

    oklch(25% 0.072 144.8)

  • #212400

    #212400

    oklch(24.9% 0.056 114.4)

  • #002920

    #002920

    oklch(25.1% 0.048 174.1)

Open the analogous palette in the generator

Split complementary

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

  • #042A08

    #042A08

    oklch(25% 0.072 144.8)

  • #251840

    #251840

    oklch(24.9% 0.073 295.6)

  • #3B0F23

    #3B0F23

    oklch(25% 0.073 355.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #042A08

    #042A08

    oklch(25% 0.072 144.8)

  • #101F44

    #101F44

    oklch(25% 0.073 265)

  • #3E100F

    #3E100F

    oklch(25.1% 0.072 25.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #042A08

    #042A08

    oklch(25% 0.072 144.8)

  • #002537

    #002537

    oklch(25% 0.053 234.9)

  • #321334

    #321334

    oklch(25% 0.072 325.1)

  • #371800

    #371800

    oklch(25% 0.061 55.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #042A08 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.