#2F811F#2F811F
#2F811F is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.3% C 0.154 H 140.8°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #2F811F |
|---|---|
| RGB | rgb(47, 129, 31) |
| HSL | hsl(110, 61%, 31%) |
| HSV | hsv(110, 76%, 51%) |
| CMYK | cmyk(63.6%, 0%, 76%, 49.4%) |
| CIE-LAB | lab(47.50, -43.55, 43.14) |
| CIE-LCH | lch(47.50, 61.30, 135.27°) |
| OKLab | oklab(53.3% -0.1192 0.0974) |
| OKLCH | oklch(53.3% 0.154 140.8) |
| XYZ | xyz(9.2694, 16.4029, 3.9736) |
| Luminance | 0.1640 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.22
Dark Grass Green
#388004
ΔE00 2.92
Green
#008000
ΔE00 2.94
Forestgreen (CSS)
#228B22
ΔE00 3.62
Darkish Green
#287C37
ΔE00 5.02
Emerald Green
#028F1E
ΔE00 5.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F811F #711F81
analogous
#60811F #2F811F #1F8140
triadic
#2F811F #1F2F81 #811F2F
tetradic
#2F811F #1F6081 #711F81 #81401F
square
#2F811F #1F6081 #711F81 #81401F
split-complementary
#2F811F #401F81 #811F60
monochromatic
#0B1E07 #1D5013 #2F811F #41B22B #5ED347
Accessibility & contrast
On white
4.91
#2F811F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.28
#2F811F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F811F
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F811F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F811F | 1.00 | 4.91 | 4.28 | 4.91 |
| #FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#84750C
Deuteranopia (green-blind)
#7A6E29
Tritanopia (blue-blind)
#227D6E
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #2f811f; /* rgb */ color: rgb(47, 129, 31); /* oklch */ color: oklch(53.3% 0.154 140.8);
Tailwind
colors: {
custom: {
50: '#73a662',
500: '#2f811f',
950: '#000000',
},
}SCSS
$custom: #2f811f; $custom-light: #73a662; $custom-dark: #000000;
JSON
{
"hex": "#2f811f",
"rgb": {
"r": 47,
"g": 129,
"b": 31
},
"hsl": {
"h": 110.204,
"s": 61.25,
"l": 31.373
},
"oklch": {
"l": 0.53302,
"c": 0.15393,
"h": 140.8
},
"luminance": 0.16404
}Semantic roles & 50–950 ramp
primary
#2F811F
secondary
#A248B4
accent
#43E4CA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A