#1F8A2B#1F8A2B
#1F8A2B is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.5% C 0.162 H 144.4°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).
Color values
| HEX | #1F8A2B |
|---|---|
| RGB | rgb(31, 138, 43) |
| HSL | hsl(127, 63%, 33%) |
| HSV | hsv(127, 78%, 54%) |
| CMYK | cmyk(77.5%, 0%, 68.8%, 45.9%) |
| CIE-LAB | lab(50.27, -48.89, 40.99) |
| CIE-LCH | lch(50.27, 63.80, 140.02°) |
| OKLab | oklab(55.51% -0.1321 0.0946) |
| OKLCH | oklch(55.51% 0.162 144.4) |
| XYZ | xyz(10.0889, 18.6415, 5.3515) |
| Luminance | 0.1864 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.40
Emerald Green
#028F1E
ΔE00 2.47
Kelley Green
#009337
ΔE00 3.47
Irish Green
#019529
ΔE00 3.89
Tree Green
#2A7E19
ΔE00 4.63
Green
#008000
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F8A2B #8A1F7E
analogous
#488A1F #1F8A2B #1F8A60
triadic
#1F8A2B #2B1F8A #8A2B1F
tetradic
#1F8A2B #1F488A #8A1F7E #8A601F
square
#1F8A2B #1F488A #8A1F7E #8A601F
split-complementary
#1F8A2B #601F8A #8A1F48
monochromatic
#09260C #14581B #1F8A2B #2ABC3B #4CD75C
Accessibility & contrast
On white
4.44
#1F8A2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.73
#1F8A2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #1F8A2B
4.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F8A2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##1F8A2B | 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)
#8D7D1E
Deuteranopia (green-blind)
#817434
Tritanopia (blue-blind)
#008677
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #1f8a2b; /* rgb */ color: rgb(31, 138, 43); /* oklch */ color: oklch(55.5% 0.162 144.4);
Tailwind
colors: {
custom: {
50: '#6ead69',
500: '#1f8a2b',
950: '#000000',
},
}SCSS
$custom: #1f8a2b; $custom-light: #6ead69; $custom-dark: #000000;
JSON
{
"hex": "#1f8a2b",
"rgb": {
"r": 31,
"g": 138,
"b": 43
},
"hsl": {
"h": 126.729,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.55514,
"c": 0.16248,
"h": 144.4
},
"luminance": 0.18643
}Semantic roles & 50–950 ramp
primary
#1F8A2B
secondary
#BA4BAD
accent
#41D4E6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A