#04170C

Closest named color: Rich Navy (#001219). oklch(18.4% 0.035 156.9), rgb(4, 23, 12).

Aa

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

About this color

#04170C is a very dark, muted green. In OKLCH its lightness is 18%, its chroma 0.035 and its hue 157°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rich Navy (#001219), ΔE 0.039 away. White text reads best on it, at 18.53:1.

Hue familyGreens
Lightnessvery dark (18%)
Chromamuted (0.035)
Temperaturein between
Nearest nameRich Navy (#001219)
Black text1.13:1
White text18.53:1

Values

HEX#04170C
RGBrgb(4, 23, 12)
HSLhsl(145, 70%, 5%)
OKLCHoklch(18.4% 0.035 156.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 #04170C 18.53:1 AAA Lc -107.1 Preferred for body text
Black text on #04170C 1.13:1 Fails Lc 0.0 Not readable
#04170C text on white 18.53:1 AAA Lc 105.0 Preferred for body text
#04170C text on black 1.13: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

    #F3F7F4

    oklch(97.2% 0.006 153.8)

  2. Step 100

    100

    #E4ECE7

    oklch(93.6% 0.011 158.8)

  3. Step 200

    200

    #CEDED3

    oklch(88.5% 0.023 155.9)

  4. Step 300

    300

    #ACC9B6

    oklch(80.9% 0.041 156.7)

  5. Step 400

    400

    #7EAD90

    oklch(70.6% 0.066 157.2)

  6. Step 500

    500

    #5C9975

    oklch(63.1% 0.084 157)

  7. Step 600

    600

    #40835D

    oklch(55.5% 0.091 156.8)

  8. Step 700

    700

    #316F4D

    oklch(49.1% 0.085 157.1)

  9. Step 800

    800

    #2A5B3F

    oklch(42.8% 0.071 156.5)

  10. Step 900

    900

    #274A36

    oklch(37.6% 0.054 157.4)

  11. Step 950

    950 (this color)

    #04170C

    oklch(18.4% 0.035 156.9)

Export this scale for Tailwind in the Tailwind colors tool

#04170C 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)#17140B0.033
Deuteranopia (no green cones)#14120D0.033
Tritanopia (no blue cones)#0117140.016
Achromatopsia (no color)#1313130.035

Harmonies

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

Complementary

The opposite hue (180°).

  • #04170C

    #04170C

    oklch(18.4% 0.035 156.9)

  • #1C0C18

    #1C0C18

    oklch(18.4% 0.035 336.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #04170C

    #04170C

    oklch(18.4% 0.035 156.9)

  • #0E1504

    #0E1504

    oklch(18.3% 0.035 126.9)

  • #001715

    #001715

    oklch(18.4% 0.032 187.5)

Open the analogous palette in the generator

Split complementary

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

  • #04170C

    #04170C

    oklch(18.4% 0.035 156.9)

  • #160E1F

    #160E1F

    oklch(18.4% 0.036 304.8)

  • #1F0B10

    #1F0B10

    oklch(18.3% 0.035 5.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #04170C

    #04170C

    oklch(18.4% 0.035 156.9)

  • #0F1122

    #0F1122

    oklch(18.5% 0.035 277.3)

  • #1F0C07

    #1F0C07

    oklch(18.2% 0.035 36.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #04170C

    #04170C

    oklch(18.4% 0.035 156.9)

  • #051421

    #051421

    oklch(18.5% 0.034 245.7)

  • #1C0C18

    #1C0C18

    oklch(18.4% 0.035 336.8)

  • #1D0F02

    #1D0F02

    oklch(18.4% 0.035 66.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #04170C 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.