#042118

Closest named color: Rich Black (#0D1B2A). oklch(22.3% 0.039 169), rgb(4, 33, 24).

Aa

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

About this color

#042118 is a very dark, muted green. In OKLCH its lightness is 22%, its chroma 0.039 and its hue 169°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rich Black (#0D1B2A), ΔE 0.050 away. White text reads best on it, at 16.99:1.

Hue familyGreens
Lightnessvery dark (22%)
Chromamuted (0.039)
Temperaturein between
Nearest nameRich Black (#0D1B2A)
Black text1.23:1
White text16.99:1

Values

HEX#042118
RGBrgb(4, 33, 24)
HSLhsl(161, 78%, 7%)
OKLCHoklch(22.3% 0.039 169)

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 #042118 16.99:1 AAA Lc -106.1 Preferred for body text
Black text on #042118 1.23:1 Fails Lc 0.0 Not readable
#042118 text on white 16.99:1 AAA Lc 103.7 Preferred for body text
#042118 text on black 1.23: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

    #F2F7F5

    oklch(97.2% 0.006 170.4)

  2. Step 100

    100

    #E2EDE8

    oklch(93.6% 0.013 167.2)

  3. Step 200

    200

    #C9DFD6

    oklch(88.5% 0.026 169.2)

  4. Step 300

    300

    #A4CBBB

    oklch(80.9% 0.047 168.3)

  5. Step 400

    400

    #70B099

    oklch(70.7% 0.074 169.4)

  6. Step 500

    500

    #459C7F

    oklch(63.1% 0.096 168.6)

  7. Step 600

    600

    #1B8669

    oklch(55.5% 0.103 169.5)

  8. Step 700

    700

    #077257

    oklch(49.1% 0.097 168.8)

  9. Step 800

    800

    #0F5D47

    oklch(42.8% 0.081 168.5)

  10. Step 900

    900

    #184C3C

    oklch(37.7% 0.062 169.3)

  11. Step 950

    950 (this color)

    #042118

    oklch(22.3% 0.039 169)

Export this scale for Tailwind in the Tailwind colors tool

#042118 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)#201E180.040
Deuteranopia (no green cones)#1C1B190.039
Tritanopia (no blue cones)#00211E0.012
Achromatopsia (no color)#1C1C1C0.040

Harmonies

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

Complementary

The opposite hue (180°).

  • #042118

    #042118

    oklch(22.3% 0.039 169)

  • #29131E

    #29131E

    oklch(22.3% 0.04 349.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #042118

    #042118

    oklch(22.3% 0.039 169)

  • #11200D

    #11200D

    oklch(22.4% 0.041 139.3)

  • #002022

    #002022

    oklch(22.1% 0.038 200.7)

Open the analogous palette in the generator

Split complementary

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

  • #042118

    #042118

    oklch(22.3% 0.039 169)

  • #231527

    #231527

    oklch(22.3% 0.04 318.6)

  • #2B1314

    #2B1314

    oklch(22.2% 0.04 18.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #042118

    #042118

    oklch(22.3% 0.039 169)

  • #1B182C

    #1B182C

    oklch(22.3% 0.039 289.8)

  • #2A150A

    #2A150A

    oklch(22.3% 0.04 47.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #042118

    #042118

    oklch(22.3% 0.039 169)

  • #101B2D

    #101B2D

    oklch(22.2% 0.039 259.9)

  • #29131E

    #29131E

    oklch(22.3% 0.04 349.5)

  • #251904

    #251904

    oklch(22.3% 0.039 79.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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