#1F8E2B#1F8E2B
#1F8E2B is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.6% C 0.167 H 144.3°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #1F8E2B |
|---|---|
| RGB | rgb(31, 142, 43) |
| HSL | hsl(126, 64%, 34%) |
| HSV | hsv(126, 78%, 56%) |
| CMYK | cmyk(78.2%, 0%, 69.7%, 44.3%) |
| CIE-LAB | lab(51.62, -50.25, 42.45) |
| CIE-LCH | lch(51.62, 65.78, 139.81°) |
| OKLab | oklab(56.64% -0.1358 0.0976) |
| OKLCH | oklch(56.64% 0.167 144.3) |
| XYZ | xyz(10.6734, 19.8105, 5.5463) |
| Luminance | 0.1981 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.46
Emerald Green
#028F1E
ΔE00 1.60
Irish Green
#019529
ΔE00 2.50
Kelley Green
#009337
ΔE00 2.53
True Green
#089404
ΔE00 3.97
Tree Green
#2A7E19
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F8E2B #8E1F82
analogous
#4B8E1F #1F8E2B #1F8E63
triadic
#1F8E2B #2B1F8E #8E2B1F
tetradic
#1F8E2B #1F4B8E #8E1F82 #8E631F
square
#1F8E2B #1F4B8E #8E1F82 #8E631F
split-complementary
#1F8E2B #631F8E #8E1F4B
monochromatic
#092A0D #145C1C #1F8E2B #2AC03A #4FD95E
Accessibility & contrast
On white
4.23
#1F8E2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.96
#1F8E2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #1F8E2B
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F8E2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##1F8E2B | 1.00 | 4.23 | 4.96 | 4.96 |
| #FFFFFF | 4.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.96 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.96 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#91801D
Deuteranopia (green-blind)
#847834
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #1f8e2b; /* rgb */ color: rgb(31, 142, 43); /* oklch */ color: oklch(56.6% 0.167 144.3);
Tailwind
colors: {
custom: {
50: '#6fb06a',
500: '#1f8e2b',
950: '#000000',
},
}SCSS
$custom: #1f8e2b; $custom-light: #6fb06a; $custom-dark: #000000;
JSON
{
"hex": "#1f8e2b",
"rgb": {
"r": 31,
"g": 142,
"b": 43
},
"hsl": {
"h": 126.486,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.56641,
"c": 0.16728,
"h": 144.3
},
"luminance": 0.19812
}Semantic roles & 50–950 ramp
primary
#1F8E2B
secondary
#BB4DB0
accent
#41D5E7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081107
muted
#7B807A