#2A6017#2A6017
#2A6017 is a dark, moderate green. Relative luminance 0.089; OKLCH L 43.6% C 0.119 H 138.9°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2A6017 |
|---|---|
| RGB | rgb(42, 96, 23) |
| HSL | hsl(104, 61%, 23%) |
| HSV | hsv(104, 76%, 38%) |
| CMYK | cmyk(56.3%, 0%, 76%, 62.4%) |
| CIE-LAB | lab(35.83, -32.47, 34.45) |
| CIE-LCH | lch(35.83, 47.34, 133.31°) |
| OKLab | oklab(43.6% -0.0895 0.0781) |
| OKLCH | oklch(43.6% 0.119 138.9) |
| XYZ | xyz(5.2922, 8.9194, 2.2532) |
| Luminance | 0.0892 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 3.98
Deep Green
#02590F
ΔE00 4.00
Forest
#0B5509
ΔE00 4.37
Forest Green
#2D5A27
ΔE00 4.41
Navy Green
#35530A
ΔE00 5.66
Pine
#2B5D34
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A6017 #4D1760
analogous
#4E6017 #2A6017 #176028
triadic
#2A6017 #172A60 #60172A
tetradic
#2A6017 #174E60 #4D1760 #602817
square
#2A6017 #174E60 #4D1760 #602817
split-complementary
#2A6017 #281760 #60174E
monochromatic
#0B1906 #142F0B #2A6017 #409123 #55C32F
Accessibility & contrast
On white
7.54
#2A6017 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.78
#2A6017 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A6017
7.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A6017 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A6017 | 1.00 | 7.54 | 2.78 | 7.54 |
| #FFFFFF | 7.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#63570B
Deuteranopia (green-blind)
#5C531E
Tritanopia (blue-blind)
#255D52
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #2a6017; /* rgb */ color: rgb(42, 96, 23); /* oklch */ color: oklch(43.6% 0.119 138.9);
Tailwind
colors: {
custom: {
50: '#6a8e59',
500: '#2a6017',
950: '#000000',
},
}SCSS
$custom: #2a6017; $custom-light: #6a8e59; $custom-dark: #000000;
JSON
{
"hex": "#2a6017",
"rgb": {
"r": 42,
"g": 96,
"b": 23
},
"hsl": {
"h": 104.384,
"s": 61.345,
"l": 23.333
},
"oklch": {
"l": 0.436,
"c": 0.11877,
"h": 138.9
},
"luminance": 0.0892
}Semantic roles & 50–950 ramp
primary
#2A6017
secondary
#7F3C97
accent
#43E4BB
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79