#2F511C#2F511C
#2F511C is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.6% C 0.090 H 135.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2F511C |
|---|---|
| RGB | rgb(47, 81, 28) |
| HSL | hsl(98, 49%, 21%) |
| HSV | hsv(98, 65%, 32%) |
| CMYK | cmyk(42%, 0%, 65.4%, 68.2%) |
| CIE-LAB | lab(30.81, -23.29, 26.75) |
| CIE-LCH | lch(30.81, 35.47, 131.05°) |
| OKLab | oklab(39.57% -0.0645 0.0625) |
| OKLCH | oklch(39.57% 0.09 135.9) |
| XYZ | xyz(4.3242, 6.5728, 2.1392) |
| Luminance | 0.0657 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Forest Green
#2D5A27
ΔE00 3.55
Navy Green
#35530A
ΔE00 4.07
Forrest Green
#154406
ΔE00 5.19
Forest
#0B5509
ΔE00 5.56
Darkgreen (survey)
#054907
ΔE00 5.59
British Racing Green
#05480D
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F511C #3E1C51
analogous
#4A511C #2F511C #1C5124
triadic
#2F511C #1C2F51 #511C2F
tetradic
#2F511C #1C4A51 #3E1C51 #51241C
square
#2F511C #1C4A51 #3E1C51 #51241C
split-complementary
#2F511C #241C51 #511C4A
monochromatic
#0D1708 #15240C #2F511C #497E2C #64AC3B
Accessibility & contrast
On white
9.07
#2F511C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.31
#2F511C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F511C
9.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F511C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F511C | 1.00 | 9.07 | 2.31 | 9.07 |
| #FFFFFF | 9.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#544A16
Deuteranopia (green-blind)
#4F4720
Tritanopia (blue-blind)
#2E4E46
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2f511c; /* rgb */ color: rgb(47, 81, 28); /* oklch */ color: oklch(39.6% 0.090 135.9);
Tailwind
colors: {
custom: {
50: '#6a825a',
500: '#2f511c',
950: '#000000',
},
}SCSS
$custom: #2f511c; $custom-light: #6a825a; $custom-dark: #000000;
JSON
{
"hex": "#2f511c",
"rgb": {
"r": 47,
"g": 81,
"b": 28
},
"hsl": {
"h": 98.491,
"s": 48.624,
"l": 21.373
},
"oklch": {
"l": 0.39568,
"c": 0.08979,
"h": 135.9
},
"luminance": 0.06573
}Semantic roles & 50–950 ramp
primary
#2F511C
secondary
#6E4287
accent
#50D8A7
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A04
muted
#7A7C79