#1F8A2E#1F8A2E
#1F8A2E is a mid, vivid green. Relative luminance 0.187; OKLCH L 55.5% C 0.160 H 144.9°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).
Color values
| HEX | #1F8A2E |
|---|---|
| RGB | rgb(31, 138, 46) |
| HSL | hsl(128, 63%, 33%) |
| HSV | hsv(128, 78%, 54%) |
| CMYK | cmyk(77.5%, 0%, 66.7%, 45.9%) |
| CIE-LAB | lab(50.29, -48.56, 39.69) |
| CIE-LCH | lch(50.29, 62.71, 140.74°) |
| OKLab | oklab(55.55% -0.1311 0.0922) |
| OKLCH | oklch(55.55% 0.16 144.9) |
| XYZ | xyz(10.1460, 18.6643, 5.6521) |
| Luminance | 0.1867 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.83
Emerald Green
#028F1E
ΔE00 2.78
Kelley Green
#009337
ΔE00 3.31
Irish Green
#019529
ΔE00 4.00
Tree Green
#2A7E19
ΔE00 4.82
Green
#008000
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F8A2E #8A1F7B
analogous
#458A1F #1F8A2E #1F8A63
triadic
#1F8A2E #2E1F8A #8A2E1F
tetradic
#1F8A2E #1F458A #8A1F7B #8A631F
square
#1F8A2E #1F458A #8A1F7B #8A631F
split-complementary
#1F8A2E #631F8A #8A1F45
monochromatic
#09260D #14581D #1F8A2E #2ABC3F #4CD760
Accessibility & contrast
On white
4.44
#1F8A2E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.73
#1F8A2E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #1F8A2E
4.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F8A2E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##1F8A2E | 1.00 | 4.44 | 4.73 | 4.73 |
| #FFFFFF | 4.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8C7D23
Deuteranopia (green-blind)
#807436
Tritanopia (blue-blind)
#008677
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #1f8a2e; /* rgb */ color: rgb(31, 138, 46); /* oklch */ color: oklch(55.5% 0.160 144.9);
Tailwind
colors: {
custom: {
50: '#6ead6b',
500: '#1f8a2e',
950: '#000000',
},
}SCSS
$custom: #1f8a2e; $custom-light: #6ead6b; $custom-dark: #000000;
JSON
{
"hex": "#1f8a2e",
"rgb": {
"r": 31,
"g": 138,
"b": 46
},
"hsl": {
"h": 128.411,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.55545,
"c": 0.16025,
"h": 144.9
},
"luminance": 0.18666
}Semantic roles & 50–950 ramp
primary
#1F8A2E
secondary
#BA4BAA
accent
#41CFE6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A