#1F7940#1F7940
#1F7940 is a mid, vivid green. Relative luminance 0.143; OKLCH L 51.0% C 0.122 H 151.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7940 |
|---|---|
| RGB | rgb(31, 121, 64) |
| HSL | hsl(142, 59%, 30%) |
| HSV | hsv(142, 74%, 47%) |
| CMYK | cmyk(74.4%, 0%, 47.1%, 52.5%) |
| CIE-LAB | lab(44.71, -39.61, 23.88) |
| CIE-LCH | lch(44.71, 46.25, 148.92°) |
| OKLab | oklab(51% -0.1066 0.0587) |
| OKLCH | oklch(51% 0.122 151.2) |
| XYZ | xyz(8.3272, 14.3353, 7.1776) |
| Luminance | 0.1434 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 2.91
Jungle Green
#048243
ΔE00 3.31
Sea Green
#2E8B57
ΔE00 7.00
Dark Sea Green
#11875D
ΔE00 7.05
Tree Green
#2A7E19
ΔE00 7.84
Dark Sage
#598556
ΔE00 8.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7940 #791F58
analogous
#2B791F #1F7940 #1F796D
triadic
#1F7940 #401F79 #79401F
tetradic
#1F7940 #1F2B79 #791F58 #796D1F
square
#1F7940 #1F2B79 #791F58 #796D1F
split-complementary
#1F7940 #6D1F79 #791F2B
monochromatic
#06180D #134826 #1F7940 #2BAA5A #43CF77
Accessibility & contrast
On white
5.43
#1F7940 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.87
#1F7940 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7940
5.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7940 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7940 | 1.00 | 5.43 | 3.87 | 5.43 |
| #FFFFFF | 5.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#796E3C
Deuteranopia (green-blind)
#6F6744
Tritanopia (blue-blind)
#00776B
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #1f7940; /* rgb */ color: rgb(31, 121, 64); /* oklch */ color: oklch(51.0% 0.122 151.2);
Tailwind
colors: {
custom: {
50: '#69a176',
500: '#1f7940',
950: '#000000',
},
}SCSS
$custom: #1f7940; $custom-light: #69a176; $custom-dark: #000000;
JSON
{
"hex": "#1f7940",
"rgb": {
"r": 31,
"g": 121,
"b": 64
},
"hsl": {
"h": 142,
"s": 59.211,
"l": 29.804
},
"oklch": {
"l": 0.50995,
"c": 0.1217,
"h": 151.2
},
"luminance": 0.14336
}Semantic roles & 50–950 ramp
primary
#1F7940
secondary
#AC4787
accent
#45A9E2
background
#F6FAF7
surface
#EBF3ED
border
#C6CDC8
text
#070F08
muted
#7A7F7B