#1F7018#1F7018
#1F7018 is a mid, vivid green. Relative luminance 0.119; OKLCH L 47.9% C 0.144 H 142.0°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7018 |
|---|---|
| RGB | rgb(31, 112, 24) |
| HSL | hsl(115, 65%, 27%) |
| HSV | hsv(115, 79%, 44%) |
| CMYK | cmyk(72.3%, 0%, 78.6%, 56.1%) |
| CIE-LAB | lab(41.13, -41.53, 39.28) |
| CIE-LCH | lch(41.13, 57.16, 136.59°) |
| OKLab | oklab(47.88% -0.1131 0.0885) |
| OKLCH | oklch(47.88% 0.144 142) |
| XYZ | xyz(6.5237, 11.9449, 2.8258) |
| Luminance | 0.1195 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 4.35
Tree Green
#2A7E19
ΔE00 5.05
Darkish Green
#287C37
ΔE00 5.62
Green
#008000
ΔE00 6.05
Dark Grass Green
#388004
ΔE00 7.05
Deep Green
#02590F
ΔE00 7.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7018 #691870
analogous
#4B7018 #1F7018 #18703D
triadic
#1F7018 #181F70 #70181F
tetradic
#1F7018 #184B70 #691870 #703D18
square
#1F7018 #184B70 #691870 #703D18
split-complementary
#1F7018 #3D1870 #70184B
monochromatic
#071905 #113E0D #1F7018 #2DA223 #3DD330
Accessibility & contrast
On white
6.20
#1F7018 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#1F7018 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7018
6.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7018 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7018 | 1.00 | 6.20 | 3.39 | 6.20 |
| #FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#736506
Deuteranopia (green-blind)
#695F22
Tritanopia (blue-blind)
#0A6C5F
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #1f7018; /* rgb */ color: rgb(31, 112, 24); /* oklch */ color: oklch(47.9% 0.144 142.0);
Tailwind
colors: {
custom: {
50: '#689a5c',
500: '#1f7018',
950: '#000000',
},
}SCSS
$custom: #1f7018; $custom-light: #689a5c; $custom-dark: #000000;
JSON
{
"hex": "#1f7018",
"rgb": {
"r": 31,
"g": 112,
"b": 24
},
"hsl": {
"h": 115.227,
"s": 64.706,
"l": 26.667
},
"oklch": {
"l": 0.47884,
"c": 0.14361,
"h": 142
},
"luminance": 0.11946
}Semantic roles & 50–950 ramp
primary
#1F7018
secondary
#9D3EA5
accent
#40E8DA
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79