#1F891B#1F891B
#1F891B is a mid, vivid green. Relative luminance 0.183; OKLCH L 55.1% C 0.171 H 142.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).
Color values
| HEX | #1F891B |
|---|---|
| RGB | rgb(31, 137, 27) |
| HSL | hsl(118, 67%, 32%) |
| HSV | hsv(118, 80%, 54%) |
| CMYK | cmyk(77.4%, 0%, 80.3%, 46.3%) |
| CIE-LAB | lab(49.81, -49.94, 46.71) |
| CIE-LCH | lch(49.81, 68.38, 136.92°) |
| OKLab | oklab(55.1% -0.1358 0.1044) |
| OKLCH | oklch(55.1% 0.171 142.4) |
| XYZ | xyz(9.7080, 18.2606, 4.0497) |
| Luminance | 0.1826 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 0.95
Emerald Green
#028F1E
ΔE00 2.24
Green
#008000
ΔE00 3.67
Tree Green
#2A7E19
ΔE00 3.92
True Green
#089404
ΔE00 4.20
Irish Green
#019529
ΔE00 4.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F891B #851B89
analogous
#56891B #1F891B #1B894E
triadic
#1F891B #1B1F89 #891B1F
tetradic
#1F891B #1B5689 #851B89 #894E1B
square
#1F891B #1B5689 #851B89 #894E1B
split-complementary
#1F891B #4E1B89 #891B56
monochromatic
#082307 #135611 #1F891B #2BBC25 #4ADA44
Accessibility & contrast
On white
4.51
#1F891B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.65
#1F891B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #1F891B
4.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F891B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##1F891B | 1.00 | 4.51 | 4.65 | 4.65 |
| #FFFFFF | 4.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#817328
Tritanopia (blue-blind)
#008575
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #1f891b; /* rgb */ color: rgb(31, 137, 27); /* oklch */ color: oklch(55.1% 0.171 142.4);
Tailwind
colors: {
custom: {
50: '#6eac61',
500: '#1f891b',
950: '#000000',
},
}SCSS
$custom: #1f891b; $custom-light: #6eac61; $custom-dark: #000000;
JSON
{
"hex": "#1f891b",
"rgb": {
"r": 31,
"g": 137,
"b": 27
},
"hsl": {
"h": 117.818,
"s": 67.073,
"l": 32.157
},
"oklch": {
"l": 0.551,
"c": 0.17125,
"h": 142.4
},
"luminance": 0.18262
}Semantic roles & 50–950 ramp
primary
#1F891B
secondary
#B744BC
accent
#3EEAE4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A