#2A571C#2A571C
#2A571C is a dark, moderate green. Relative luminance 0.074; OKLCH L 41.0% C 0.102 H 139.0°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2A571C |
|---|---|
| RGB | rgb(42, 87, 28) |
| HSL | hsl(106, 51%, 23%) |
| HSV | hsv(106, 68%, 34%) |
| CMYK | cmyk(51.7%, 0%, 67.8%, 65.9%) |
| CIE-LAB | lab(32.68, -28.00, 28.78) |
| CIE-LCH | lch(32.68, 40.15, 134.21°) |
| OKLab | oklab(41.03% -0.077 0.0669) |
| OKLCH | oklch(41.03% 0.102 139) |
| XYZ | xyz(4.5725, 7.3922, 2.2843) |
| Luminance | 0.0739 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forest Green
#2D5A27
ΔE00 2.17
Forest
#0B5509
ΔE00 3.79
Deep Green
#02590F
ΔE00 4.17
Navy Green
#35530A
ΔE00 4.60
Pine
#2B5D34
ΔE00 5.33
Bottle Green
#044A05
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A571C #491C57
analogous
#47571C #2A571C #1C572C
triadic
#2A571C #1C2A57 #571C2A
tetradic
#2A571C #1C4757 #491C57 #572C1C
square
#2A571C #1C4757 #491C57 #572C1C
split-complementary
#2A571C #2C1C57 #571C47
monochromatic
#0B1707 #14290D #2A571C #40852B #57B43A
Accessibility & contrast
On white
8.47
#2A571C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#2A571C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A571C
8.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A571C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A571C | 1.00 | 8.47 | 2.48 | 8.47 |
| #FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5A4F15
Deuteranopia (green-blind)
#544B21
Tritanopia (blue-blind)
#26544B
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2a571c; /* rgb */ color: rgb(42, 87, 28); /* oklch */ color: oklch(41.0% 0.102 139.0);
Tailwind
colors: {
custom: {
50: '#68875b',
500: '#2a571c',
950: '#000000',
},
}SCSS
$custom: #2a571c; $custom-light: #68875b; $custom-dark: #000000;
JSON
{
"hex": "#2a571c",
"rgb": {
"r": 42,
"g": 87,
"b": 28
},
"hsl": {
"h": 105.763,
"s": 51.304,
"l": 22.549
},
"oklch": {
"l": 0.41028,
"c": 0.10195,
"h": 139
},
"luminance": 0.07392
}Semantic roles & 50–950 ramp
primary
#2A571C
secondary
#7B428D
accent
#4DDBB9
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79