#045C2E#045C2E
#045C2E is a dark, moderate green. Relative luminance 0.079; OKLCH L 41.7% C 0.106 H 152.6°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).
Color values
| HEX | #045C2E |
|---|---|
| RGB | rgb(4, 92, 46) |
| HSL | hsl(149, 92%, 19%) |
| HSV | hsv(149, 96%, 36%) |
| CMYK | cmyk(95.7%, 0%, 50%, 63.9%) |
| CIE-LAB | lab(33.73, -35.21, 19.95) |
| CIE-LCH | lch(33.73, 40.47, 150.46°) |
| OKLab | oklab(41.68% -0.0944 0.0489) |
| OKLCH | oklch(41.68% 0.106 152.6) |
| XYZ | xyz(4.3699, 7.8768, 3.8743) |
| Luminance | 0.0788 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Spruce
#0A5F38
ΔE00 2.31
Pine
#2B5D34
ΔE00 3.70
Forest Green
#2D5A27
ΔE00 4.99
Hunter Green
#355E3B
ΔE00 5.75
Deep Green
#02590F
ΔE00 5.98
Pine Green
#0A481E
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#045C2E #5C0432
analogous
#065C04 #045C2E #045C5A
triadic
#045C2E #2E045C #5C2E04
tetradic
#045C2E #04065C #5C0432 #5C5A04
square
#045C2E #04065C #5C0432 #5C5A04
split-complementary
#045C2E #5A045C #5C0406
monochromatic
#011D0F #012111 #045C2E #07974B #09D169
Accessibility & contrast
On white
8.15
#045C2E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.58
#045C2E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #045C2E
8.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##045C2E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##045C2E | 1.00 | 8.15 | 2.58 | 8.15 |
| #FFFFFF | 8.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5C532A
Deuteranopia (green-blind)
#534D31
Tritanopia (blue-blind)
#005B51
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #045c2e; /* rgb */ color: rgb(4, 92, 46); /* oklch */ color: oklch(41.7% 0.106 152.6);
Tailwind
colors: {
custom: {
50: '#5a8b67',
500: '#045c2e',
950: '#000000',
},
}SCSS
$custom: #045c2e; $custom-light: #5a8b67; $custom-dark: #000000;
JSON
{
"hex": "#045c2e",
"rgb": {
"r": 4,
"g": 92,
"b": 46
},
"hsl": {
"h": 148.636,
"s": 91.667,
"l": 18.824
},
"oklch": {
"l": 0.41682,
"c": 0.10631,
"h": 152.6
},
"luminance": 0.07877
}Semantic roles & 50–950 ramp
primary
#045C2E
secondary
#9A2261
accent
#2999FF
background
#F5F8F6
surface
#E9F0EB
border
#C5CBC6
text
#040C06
muted
#797D7A