#1F8A1C#1F8A1C
#1F8A1C is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.4% C 0.172 H 142.5°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #1F8A1C |
|---|---|
| RGB | rgb(31, 138, 28) |
| HSL | hsl(118, 66%, 33%) |
| HSV | hsv(118, 80%, 54%) |
| CMYK | cmyk(77.5%, 0%, 79.7%, 45.9%) |
| CIE-LAB | lab(50.16, -50.21, 46.71) |
| CIE-LCH | lch(50.16, 68.57, 137.07°) |
| OKLab | oklab(55.39% -0.1364 0.1045) |
| OKLCH | oklch(55.39% 0.172 142.5) |
| XYZ | xyz(9.8626, 18.5510, 4.1593) |
| Luminance | 0.1855 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 0.68
Emerald Green
#028F1E
ΔE00 1.92
True Green
#089404
ΔE00 3.90
Irish Green
#019529
ΔE00 3.99
Green
#008000
ΔE00 4.01
Tree Green
#2A7E19
ΔE00 4.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F8A1C #871C8A
analogous
#568A1C #1F8A1C #1C8A50
triadic
#1F8A1C #1C1F8A #8A1C1F
tetradic
#1F8A1C #1C568A #871C8A #8A501C
square
#1F8A1C #1C568A #871C8A #8A501C
split-complementary
#1F8A1C #501C8A #8A1C56
monochromatic
#082407 #145712 #1F8A1C #2ABD26 #4BDA47
Accessibility & contrast
On white
4.46
#1F8A1C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.71
#1F8A1C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #1F8A1C
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F8A1C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##1F8A1C | 1.00 | 4.46 | 4.71 | 4.71 |
| #FFFFFF | 4.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#817429
Tritanopia (blue-blind)
#008675
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #1f8a1c; /* rgb */ color: rgb(31, 138, 28); /* oklch */ color: oklch(55.4% 0.172 142.5);
Tailwind
colors: {
custom: {
50: '#6ead61',
500: '#1f8a1c',
950: '#000000',
},
}SCSS
$custom: #1f8a1c; $custom-light: #6ead61; $custom-dark: #000000;
JSON
{
"hex": "#1f8a1c",
"rgb": {
"r": 31,
"g": 138,
"b": 28
},
"hsl": {
"h": 118.364,
"s": 66.265,
"l": 32.549
},
"oklch": {
"l": 0.5539,
"c": 0.17186,
"h": 142.5
},
"luminance": 0.18552
}Semantic roles & 50–950 ramp
primary
#1F8A1C
secondary
#B846BB
accent
#3FE9E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A