#1F7B40#1F7B40
#1F7B40 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.6% C 0.125 H 150.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7B40 |
|---|---|
| RGB | rgb(31, 123, 64) |
| HSL | hsl(142, 60%, 30%) |
| HSV | hsv(142, 75%, 48%) |
| CMYK | cmyk(74.8%, 0%, 48%, 51.8%) |
| CIE-LAB | lab(45.40, -40.40, 24.76) |
| CIE-LCH | lch(45.40, 47.39, 148.50°) |
| OKLab | oklab(51.56% -0.1087 0.0607) |
| OKLCH | oklch(51.56% 0.125 150.8) |
| XYZ | xyz(8.5727, 14.8264, 7.2595) |
| Luminance | 0.1483 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 2.43
Jungle Green
#048243
ΔE00 2.64
Sea Green
#2E8B57
ΔE00 6.46
Dark Sea Green
#11875D
ΔE00 6.82
Tree Green
#2A7E19
ΔE00 7.41
Dark Sage
#598556
ΔE00 8.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7B40 #7B1F5A
analogous
#2C7B1F #1F7B40 #1F7B6E
triadic
#1F7B40 #401F7B #7B401F
tetradic
#1F7B40 #1F2C7B #7B1F5A #7B6E1F
square
#1F7B40 #1F2C7B #7B1F5A #7B6E1F
split-complementary
#1F7B40 #6E1F7B #7B1F2C
monochromatic
#06190D #134A27 #1F7B40 #2BAC59 #44D076
Accessibility & contrast
On white
5.30
#1F7B40 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.97
#1F7B40 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7B40
5.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7B40 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7B40 | 1.00 | 5.30 | 3.97 | 5.30 |
| #FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7C703B
Deuteranopia (green-blind)
#716844
Tritanopia (blue-blind)
#00796D
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #1f7b40; /* rgb */ color: rgb(31, 123, 64); /* oklch */ color: oklch(51.6% 0.125 150.8);
Tailwind
colors: {
custom: {
50: '#69a276',
500: '#1f7b40',
950: '#000000',
},
}SCSS
$custom: #1f7b40; $custom-light: #69a276; $custom-dark: #000000;
JSON
{
"hex": "#1f7b40",
"rgb": {
"r": 31,
"g": 123,
"b": 64
},
"hsl": {
"h": 141.522,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.51561,
"c": 0.12451,
"h": 150.8
},
"luminance": 0.14827
}Semantic roles & 50–950 ramp
primary
#1F7B40
secondary
#AE4889
accent
#45AAE3
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B