#2F8A1F#2F8A1F
#2F8A1F is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.8% C 0.165 H 141.0°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2F8A1F |
|---|---|
| RGB | rgb(47, 138, 31) |
| HSL | hsl(111, 63%, 33%) |
| HSV | hsv(111, 78%, 54%) |
| CMYK | cmyk(65.9%, 0%, 77.5%, 45.9%) |
| CIE-LAB | lab(50.55, -46.86, 46.17) |
| CIE-LCH | lch(50.55, 65.79, 135.43°) |
| OKLab | oklab(55.82% -0.1281 0.1037) |
| OKLCH | oklch(55.82% 0.165 141) |
| XYZ | xyz(10.5076, 18.8792, 4.3864) |
| Luminance | 0.1888 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.19
Emerald Green
#028F1E
ΔE00 2.59
True Green
#089404
ΔE00 4.08
Dark Grass Green
#388004
ΔE00 4.24
Irish Green
#019529
ΔE00 4.30
Tree Green
#2A7E19
ΔE00 4.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F8A1F #7A1F8A
analogous
#648A1F #2F8A1F #1F8A44
triadic
#2F8A1F #1F2F8A #8A1F2F
tetradic
#2F8A1F #1F648A #7A1F8A #8A441F
square
#2F8A1F #1F648A #7A1F8A #8A441F
split-complementary
#2F8A1F #441F8A #8A1F64
monochromatic
#0D2609 #1E5814 #2F8A1F #40BC2A #61D74C
Accessibility & contrast
On white
4.40
#2F8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.78
#2F8A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #2F8A1F
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F8A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##2F8A1F | 1.00 | 4.40 | 4.78 | 4.78 |
| #FFFFFF | 4.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D07
Deuteranopia (green-blind)
#83762B
Tritanopia (blue-blind)
#1F8576
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #2f8a1f; /* rgb */ color: rgb(47, 138, 31); /* oklch */ color: oklch(55.8% 0.165 141.0);
Tailwind
colors: {
custom: {
50: '#74ad63',
500: '#2f8a1f',
950: '#000000',
},
}SCSS
$custom: #2f8a1f; $custom-light: #74ad63; $custom-dark: #000000;
JSON
{
"hex": "#2f8a1f",
"rgb": {
"r": 47,
"g": 138,
"b": 31
},
"hsl": {
"h": 111.028,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.55824,
"c": 0.16486,
"h": 141
},
"luminance": 0.1888
}Semantic roles & 50–950 ramp
primary
#2F8A1F
secondary
#A94BBA
accent
#41E6CE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A