#1F812E#1F812E
#1F812E is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.0% C 0.149 H 145.3°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #1F812E |
|---|---|
| RGB | rgb(31, 129, 46) |
| HSL | hsl(129, 61%, 31%) |
| HSV | hsv(129, 76%, 51%) |
| CMYK | cmyk(76%, 0%, 64.3%, 49.4%) |
| CIE-LAB | lab(47.22, -45.38, 36.26) |
| CIE-LCH | lch(47.22, 58.09, 141.38°) |
| OKLab | oklab(53% -0.1225 0.0848) |
| OKLCH | oklch(53% 0.149 145.3) |
| XYZ | xyz(8.9079, 16.1881, 5.2394) |
| Luminance | 0.1619 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 2.72
Tree Green
#2A7E19
ΔE00 3.33
Jungle Green
#048243
ΔE00 4.41
Forestgreen (CSS)
#228B22
ΔE00 4.43
Green
#008000
ΔE00 4.47
Emerald Green
#028F1E
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F812E #811F72
analogous
#41811F #1F812E #1F815F
triadic
#1F812E #2E1F81 #812E1F
tetradic
#1F812E #1F4181 #811F72 #815F1F
square
#1F812E #1F4181 #811F72 #815F1F
split-complementary
#1F812E #5F1F81 #811F41
monochromatic
#071E0B #13501C #1F812E #2BB240 #47D35D
Accessibility & contrast
On white
4.96
#1F812E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.24
#1F812E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F812E
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F812E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F812E | 1.00 | 4.96 | 4.24 | 4.96 |
| #FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#837525
Deuteranopia (green-blind)
#786D35
Tritanopia (blue-blind)
#007E6F
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #1f812e; /* rgb */ color: rgb(31, 129, 46); /* oklch */ color: oklch(53.0% 0.149 145.3);
Tailwind
colors: {
custom: {
50: '#6ba76a',
500: '#1f812e',
950: '#000000',
},
}SCSS
$custom: #1f812e; $custom-light: #6ba76a; $custom-dark: #000000;
JSON
{
"hex": "#1f812e",
"rgb": {
"r": 31,
"g": 129,
"b": 46
},
"hsl": {
"h": 129.184,
"s": 61.25,
"l": 31.373
},
"oklch": {
"l": 0.52997,
"c": 0.149,
"h": 145.3
},
"luminance": 0.16189
}Semantic roles & 50–950 ramp
primary
#1F812E
secondary
#B448A3
accent
#43CCE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A