#045F2E#045F2E
#045F2E is a dark, moderate green. Relative luminance 0.084; OKLCH L 42.6% C 0.110 H 151.9°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).
Color values
| HEX | #045F2E |
|---|---|
| RGB | rgb(4, 95, 46) |
| HSL | hsl(148, 92%, 19%) |
| HSV | hsv(148, 96%, 37%) |
| CMYK | cmyk(95.8%, 0%, 51.6%, 62.7%) |
| CIE-LAB | lab(34.82, -36.36, 21.34) |
| CIE-LCH | lch(34.82, 42.16, 149.60°) |
| OKLab | oklab(42.59% -0.0974 0.0521) |
| OKLCH | oklch(42.59% 0.11 151.9) |
| XYZ | xyz(4.6350, 8.4069, 3.9626) |
| Luminance | 0.0841 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Spruce
#0A5F38
ΔE00 2.68
Pine
#2B5D34
ΔE00 3.90
Forest Green
#2D5A27
ΔE00 4.99
Deep Green
#02590F
ΔE00 5.67
Hunter Green
#355E3B
ΔE00 5.97
Forest
#0B5509
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#045F2E #5F0435
analogous
#085F04 #045F2E #045F5C
triadic
#045F2E #2E045F #5F2E04
tetradic
#045F2E #04085F #5F0435 #5F5C04
square
#045F2E #04085F #5F0435 #5F5C04
split-complementary
#045F2E #5C045F #5F0408
monochromatic
#011D0E #022412 #045F2E #069A4A #09D467
Accessibility & contrast
On white
7.83
#045F2E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.68
#045F2E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #045F2E
7.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##045F2E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##045F2E | 1.00 | 7.83 | 2.68 | 7.83 |
| #FFFFFF | 7.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5F562A
Deuteranopia (green-blind)
#564F32
Tritanopia (blue-blind)
#005D53
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #045f2e; /* rgb */ color: rgb(4, 95, 46); /* oklch */ color: oklch(42.6% 0.110 151.9);
Tailwind
colors: {
custom: {
50: '#5b8d67',
500: '#045f2e',
950: '#000000',
},
}SCSS
$custom: #045f2e; $custom-light: #5b8d67; $custom-dark: #000000;
JSON
{
"hex": "#045f2e",
"rgb": {
"r": 4,
"g": 95,
"b": 46
},
"hsl": {
"h": 147.692,
"s": 91.919,
"l": 19.412
},
"oklch": {
"l": 0.42587,
"c": 0.11048,
"h": 151.9
},
"luminance": 0.08407
}Semantic roles & 50–950 ramp
primary
#045F2E
secondary
#9D2264
accent
#299CFF
background
#F5F8F6
surface
#E9F0EB
border
#C5CBC6
text
#050C06
muted
#797D7A