#1F8D1F#1F8D1F
#1F8D1F is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.3% C 0.174 H 142.8°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).
Color values
| HEX | #1F8D1F |
|---|---|
| RGB | rgb(31, 141, 31) |
| HSL | hsl(120, 64%, 34%) |
| HSV | hsv(120, 78%, 55%) |
| CMYK | cmyk(78%, 0%, 78%, 44.7%) |
| CIE-LAB | lab(51.20, -50.98, 46.69) |
| CIE-LCH | lch(51.20, 69.13, 137.51°) |
| OKLab | oklab(56.26% -0.1384 0.1049) |
| OKLCH | oklch(56.26% 0.174 142.8) |
| XYZ | xyz(10.3366, 19.4388, 4.5034) |
| Luminance | 0.1944 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 0.81
Emerald Green
#028F1E
ΔE00 1.12
Irish Green
#019529
ΔE00 2.97
True Green
#089404
ΔE00 3.11
Kelley Green
#009337
ΔE00 3.82
Green
#008000
ΔE00 5.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F8D1F #8D1F8D
analogous
#568D1F #1F8D1F #1F8D56
triadic
#1F8D1F #1F1F8D #8D1F1F
tetradic
#1F8D1F #1F568D #8D1F8D #8D561F
square
#1F8D1F #1F568D #8D1F8D #8D561F
split-complementary
#1F8D1F #561F8D #8D1F56
monochromatic
#092909 #145B14 #1F8D1F #2ABF2A #4ED84E
Accessibility & contrast
On white
4.30
#1F8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.89
#1F8D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #1F8D1F
4.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F8D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##1F8D1F | 1.00 | 4.30 | 4.89 | 4.89 |
| #FFFFFF | 4.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.89 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.89 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#907F05
Deuteranopia (green-blind)
#84772B
Tritanopia (blue-blind)
#008978
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #1f8d1f; /* rgb */ color: rgb(31, 141, 31); /* oklch */ color: oklch(56.3% 0.174 142.8);
Tailwind
colors: {
custom: {
50: '#6faf63',
500: '#1f8d1f',
950: '#000000',
},
}SCSS
$custom: #1f8d1f; $custom-light: #6faf63; $custom-dark: #000000;
JSON
{
"hex": "#1f8d1f",
"rgb": {
"r": 31,
"g": 141,
"b": 31
},
"hsl": {
"h": 120,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.56259,
"c": 0.17366,
"h": 142.8
},
"luminance": 0.1944
}Semantic roles & 50–950 ramp
primary
#1F8D1F
secondary
#BB4DBB
accent
#41E7E7
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A