#1F7229#1F7229
#1F7229 is a mid, vivid green. Relative luminance 0.125; OKLCH L 48.6% C 0.134 H 145.0°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7229 |
|---|---|
| RGB | rgb(31, 114, 41) |
| HSL | hsl(127, 57%, 28%) |
| HSV | hsv(127, 73%, 45%) |
| CMYK | cmyk(72.8%, 0%, 64%, 55.3%) |
| CIE-LAB | lab(41.98, -40.50, 32.71) |
| CIE-LCH | lch(41.98, 52.06, 141.07°) |
| OKLab | oklab(48.64% -0.1095 0.0768) |
| OKLCH | oklch(48.64% 0.134 145) |
| XYZ | xyz(6.9822, 12.4853, 4.1393) |
| Luminance | 0.1249 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 3.75
Tree Green
#2A7E19
ΔE00 5.68
Darkgreen
#006400
ΔE00 5.99
Jungle Green
#048243
ΔE00 6.62
Green
#008000
ΔE00 6.98
Dark Grass Green
#388004
ΔE00 8.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7229 #721F68
analogous
#3E721F #1F7229 #1F7252
triadic
#1F7229 #291F72 #72291F
tetradic
#1F7229 #1F3E72 #721F68 #72521F
square
#1F7229 #1F3E72 #721F68 #72521F
split-complementary
#1F7229 #521F72 #721F3E
monochromatic
#071809 #124218 #1F7229 #2CA23A #40CB51
Accessibility & contrast
On white
6.00
#1F7229 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.50
#1F7229 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7229
6.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7229 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7229 | 1.00 | 6.00 | 3.50 | 6.00 |
| #FFFFFF | 6.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#746721
Deuteranopia (green-blind)
#6A602F
Tritanopia (blue-blind)
#016F62
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #1f7229; /* rgb */ color: rgb(31, 114, 41); /* oklch */ color: oklch(48.6% 0.134 145.0);
Tailwind
colors: {
custom: {
50: '#689b66',
500: '#1f7229',
950: '#000000',
},
}SCSS
$custom: #1f7229; $custom-light: #689b66; $custom-dark: #000000;
JSON
{
"hex": "#1f7229",
"rgb": {
"r": 31,
"g": 114,
"b": 41
},
"hsl": {
"h": 127.229,
"s": 57.241,
"l": 28.431
},
"oklch": {
"l": 0.48635,
"c": 0.13369,
"h": 145
},
"luminance": 0.12486
}Semantic roles & 50–950 ramp
primary
#1F7229
secondary
#A6479A
accent
#47CEE0
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#070E06
muted
#7A7E7A