#1F8F2B#1F8F2B
#1F8F2B is a mid, vivid green. Relative luminance 0.201; OKLCH L 56.9% C 0.168 H 144.3°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #1F8F2B |
|---|---|
| RGB | rgb(31, 143, 43) |
| HSL | hsl(126, 64%, 34%) |
| HSV | hsv(126, 78%, 56%) |
| CMYK | cmyk(78.3%, 0%, 69.9%, 43.9%) |
| CIE-LAB | lab(51.96, -50.59, 42.81) |
| CIE-LCH | lch(51.96, 66.27, 139.76°) |
| OKLab | oklab(56.92% -0.1367 0.0984) |
| OKLCH | oklch(56.92% 0.168 144.3) |
| XYZ | xyz(10.8228, 20.1094, 5.5961) |
| Luminance | 0.2011 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Emerald Green
#028F1E
ΔE00 1.52
Forestgreen (CSS)
#228B22
ΔE00 1.68
Irish Green
#019529
ΔE00 2.17
Kelley Green
#009337
ΔE00 2.38
True Green
#089404
ΔE00 3.74
Fern Green
#548D44
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F8F2B #8F1F83
analogous
#4B8F1F #1F8F2B #1F8F63
triadic
#1F8F2B #2B1F8F #8F2B1F
tetradic
#1F8F2B #1F4B8F #8F1F83 #8F631F
square
#1F8F2B #1F4B8F #8F1F83 #8F631F
split-complementary
#1F8F2B #631F8F #8F1F4B
monochromatic
#092A0D #145D1C #1F8F2B #2AC13A #4FD95E
Accessibility & contrast
On white
4.18
#1F8F2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.02
#1F8F2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #1F8F2B
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F8F2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##1F8F2B | 1.00 | 4.18 | 5.02 | 5.02 |
| #FFFFFF | 4.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#92811D
Deuteranopia (green-blind)
#857935
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #1f8f2b; /* rgb */ color: rgb(31, 143, 43); /* oklch */ color: oklch(56.9% 0.168 144.3);
Tailwind
colors: {
custom: {
50: '#6fb16a',
500: '#1f8f2b',
950: '#000000',
},
}SCSS
$custom: #1f8f2b; $custom-light: #6fb16a; $custom-dark: #000000;
JSON
{
"hex": "#1f8f2b",
"rgb": {
"r": 31,
"g": 143,
"b": 43
},
"hsl": {
"h": 126.429,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.56922,
"c": 0.16847,
"h": 144.3
},
"luminance": 0.20111
}Semantic roles & 50–950 ramp
primary
#1F8F2B
secondary
#BC4EB0
accent
#40D5E7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A