#042218

Closest named color: Rich Black (#0D1B2A). oklch(22.6% 0.041 167.3), rgb(4, 34, 24).

Aa

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

About this color

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

Hue familyGreens
Lightnessvery dark (23%)
Chromamuted (0.041)
Temperaturein between
Nearest nameRich Black (#0D1B2A)
Black text1.24:1
White text16.83:1

Values

HEX#042218
RGBrgb(4, 34, 24)
HSLhsl(160, 79%, 7%)
OKLCHoklch(22.6% 0.041 167.3)

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 #042218 16.83:1 AAA Lc -106.0 Preferred for body text
Black text on #042218 1.24:1 Fails Lc 0.0 Not readable
#042218 text on white 16.83:1 AAA Lc 103.6 Preferred for body text
#042218 text on black 1.24: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

    #F2F7F4

    oklch(97.2% 0.007 160.1)

  2. Step 100

    100

    #E1EDE8

    oklch(93.6% 0.014 169.2)

  3. Step 200

    200

    #C9DFD5

    oklch(88.4% 0.027 166.7)

  4. Step 300

    300

    #A3CBBA

    oklch(80.8% 0.049 167.4)

  5. Step 400

    400

    #6FB097

    oklch(70.6% 0.077 167.8)

  6. Step 500

    500

    #429D7D

    oklch(63.2% 0.1 167.1)

  7. Step 600

    600

    #168766

    oklch(55.6% 0.108 167.2)

  8. Step 700

    700

    #007255

    oklch(49% 0.1 167.6)

  9. Step 800

    800

    #0B5D45

    oklch(42.6% 0.083 167)

  10. Step 900

    900

    #164C3A

    oklch(37.6% 0.065 167.2)

  11. Step 950

    950 (this color)

    #042218

    oklch(22.6% 0.041 167.3)

Export this scale for Tailwind in the Tailwind colors tool

#042218 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)#211F170.041
Deuteranopia (no green cones)#1D1C190.040
Tritanopia (no blue cones)#00221F0.013
Achromatopsia (no color)#1D1D1D0.041

Harmonies

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

Complementary

The opposite hue (180°).

  • #042218

    #042218

    oklch(22.6% 0.041 167.3)

  • #2A1420

    #2A1420

    oklch(22.7% 0.041 346.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #042218

    #042218

    oklch(22.6% 0.041 167.3)

  • #12200D

    #12200D

    oklch(22.5% 0.04 137.9)

  • #002122

    #002122

    oklch(22.5% 0.038 197.7)

Open the analogous palette in the generator

Split complementary

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

  • #042218

    #042218

    oklch(22.6% 0.041 167.3)

  • #241629

    #241629

    oklch(22.8% 0.041 316.9)

  • #2C1315

    #2C1315

    oklch(22.4% 0.041 15.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #042218

    #042218

    oklch(22.6% 0.041 167.3)

  • #1B192E

    #1B192E

    oklch(22.7% 0.04 287.1)

  • #2B160A

    #2B160A

    oklch(22.6% 0.04 49.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #042218

    #042218

    oklch(22.6% 0.041 167.3)

  • #0F1C2F

    #0F1C2F

    oklch(22.5% 0.042 257.8)

  • #2A1420

    #2A1420

    oklch(22.7% 0.041 346.9)

  • #271904

    #271904

    oklch(22.6% 0.041 75.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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