#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 family | Greens |
| Lightness | very dark (18%) |
| Chroma | muted (0.035) |
| Temperature | in between |
| Nearest name | Rich Navy (#001219) |
| Black text | 1.13:1 |
| White text | 18.53:1 |
Values
| HEX | #04170C |
| RGB | rgb(4, 23, 12) |
| HSL | hsl(145, 70%, 5%) |
| OKLCH | oklch(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.
| Pair | WCAG 2 | Result | APCA | APCA 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.
-
Step 50
50
#F3F7F4
oklch(97.2% 0.006 153.8)
-
Step 100
100
#E4ECE7
oklch(93.6% 0.011 158.8)
-
Step 200
200
#CEDED3
oklch(88.5% 0.023 155.9)
-
Step 300
300
#ACC9B6
oklch(80.9% 0.041 156.7)
-
Step 400
400
#7EAD90
oklch(70.6% 0.066 157.2)
-
Step 500
500
#5C9975
oklch(63.1% 0.084 157)
-
Step 600
600
#40835D
oklch(55.5% 0.091 156.8)
-
Step 700
700
#316F4D
oklch(49.1% 0.085 157.1)
-
Step 800
800
#2A5B3F
oklch(42.8% 0.071 156.5)
-
Step 900
900
#274A36
oklch(37.6% 0.054 157.4)
-
Step 950
950 (this color)
#04170C
oklch(18.4% 0.035 156.9)
#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.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #17140B | 0.033 |
| Deuteranopia (no green cones) | #14120D | 0.033 |
| Tritanopia (no blue cones) | #011714 | 0.016 |
| Achromatopsia (no color) | #131313 | 0.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)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
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.
- Rich Navy #001219 ΔE 0.039
- Almost Black #070D0D ΔE 0.042
- Rich Black #0D1B2A ΔE 0.062
- Very Dark Brown #1D0200 ΔE 0.085
- Jet #212529 ΔE 0.086
- Dark #1B2431 ΔE 0.088
- Dark Forest Green #002D04 ΔE 0.089
- Very Dark Green #062E03 ΔE 0.094
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.