#042F08#042F08
#042F08 is a dark, moderate green. Relative luminance 0.021; OKLCH L 26.7% C 0.080 H 144.4°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).
Color values
| HEX | #042F08 |
|---|---|
| RGB | rgb(4, 47, 8) |
| HSL | hsl(126, 84%, 10%) |
| HSV | hsv(126, 91%, 18%) |
| CMYK | cmyk(91.5%, 0%, 83%, 81.6%) |
| CIE-LAB | lab(15.88, -23.97, 19.20) |
| CIE-LCH | lch(15.88, 30.72, 141.30°) |
| OKLab | oklab(26.7% -0.0648 0.0464) |
| OKLCH | oklch(26.7% 0.08 144.4) |
| XYZ | xyz(1.1103, 2.0762, 0.5719) |
| Luminance | 0.0208 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Dark Forest Green
#002D04
ΔE00 0.82
Very Dark Green
#062E03
ΔE00 0.93
Dark Green
#033500
ΔE00 3.35
Hunter Green (survey)
#0B4008
ΔE00 6.15
Pine Green
#0A481E
ΔE00 7.62
Forrest Green
#154406
ΔE00 7.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#042F08 #2F042B
analogous
#162F04 #042F08 #042F1D
triadic
#042F08 #08042F #2F0804
tetradic
#042F08 #04162F #2F042B #2F1D04
square
#042F08 #04162F #2F042B #2F1D04
split-complementary
#042F08 #1D042F #2F0416
monochromatic
#021C05 #021C05 #042F08 #096712 #0EA01B
Accessibility & contrast
On white
14.84
#042F08 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#042F08 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #042F08
14.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##042F08 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##042F08 | 1.00 | 14.84 | 1.42 | 14.84 |
| #FFFFFF | 14.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#302A04
Deuteranopia (green-blind)
#2B260C
Tritanopia (blue-blind)
#002D27
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #042f08; /* rgb */ color: rgb(4, 47, 8); /* oklch */ color: oklch(26.7% 0.080 144.4);
Tailwind
colors: {
custom: {
50: '#4c684a',
500: '#042f08',
950: '#000000',
},
}SCSS
$custom: #042f08; $custom-light: #4c684a; $custom-dark: #000000;
JSON
{
"hex": "#042f08",
"rgb": {
"r": 4,
"g": 47,
"b": 8
},
"hsl": {
"h": 125.581,
"s": 84.314,
"l": 10
},
"oklch": {
"l": 0.26697,
"c": 0.07966,
"h": 144.4
},
"luminance": 0.02076
}Semantic roles & 50–950 ramp
primary
#042F08
secondary
#721D6A
accent
#2DE7FB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77