#1F7318#1F7318
#1F7318 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.147 H 142.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7318 |
|---|---|
| RGB | rgb(31, 115, 24) |
| HSL | hsl(115, 65%, 27%) |
| HSV | hsv(115, 79%, 45%) |
| CMYK | cmyk(73%, 0%, 79.1%, 54.9%) |
| CIE-LAB | lab(42.18, -42.60, 40.33) |
| CIE-LCH | lch(42.18, 58.66, 136.57°) |
| OKLab | oklab(48.76% -0.116 0.0906) |
| OKLCH | oklch(48.76% 0.147 142) |
| XYZ | xyz(6.8603, 12.6180, 2.9379) |
| Luminance | 0.1262 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 4.04
Green
#008000
ΔE00 5.06
Darkish Green
#287C37
ΔE00 5.12
Darkgreen
#006400
ΔE00 5.23
Dark Grass Green
#388004
ΔE00 6.16
Jungle Green
#048243
ΔE00 8.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7318 #6C1873
analogous
#4C7318 #1F7318 #18733F
triadic
#1F7318 #181F73 #73181F
tetradic
#1F7318 #184C73 #6C1873 #733F18
square
#1F7318 #184C73 #6C1873 #733F18
split-complementary
#1F7318 #3F1873 #73184C
monochromatic
#071905 #11400D #1F7318 #2DA623 #3ED431
Accessibility & contrast
On white
5.96
#1F7318 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#1F7318 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7318
5.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7318 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7318 | 1.00 | 5.96 | 3.52 | 5.96 |
| #FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#766804
Deuteranopia (green-blind)
#6C6122
Tritanopia (blue-blind)
#086F62
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #1f7318; /* rgb */ color: rgb(31, 115, 24); /* oklch */ color: oklch(48.8% 0.147 142.0);
Tailwind
colors: {
custom: {
50: '#699c5c',
500: '#1f7318',
950: '#000000',
},
}SCSS
$custom: #1f7318; $custom-light: #699c5c; $custom-dark: #000000;
JSON
{
"hex": "#1f7318",
"rgb": {
"r": 31,
"g": 115,
"b": 24
},
"hsl": {
"h": 115.385,
"s": 65.468,
"l": 27.255
},
"oklch": {
"l": 0.48758,
"c": 0.14724,
"h": 142
},
"luminance": 0.12619
}Semantic roles & 50–950 ramp
primary
#1F7318
secondary
#A03FA8
accent
#3FE8DB
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79