#1F7342#1F7342
#1F7342 is a mid, moderate green. Relative luminance 0.129; OKLCH L 49.3% C 0.111 H 153.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7342 |
|---|---|
| RGB | rgb(31, 115, 66) |
| HSL | hsl(145, 58%, 29%) |
| HSV | hsv(145, 73%, 45%) |
| CMYK | cmyk(73%, 0%, 42.6%, 54.9%) |
| CIE-LAB | lab(42.68, -36.79, 20.12) |
| CIE-LCH | lch(42.68, 41.93, 151.32°) |
| OKLab | oklab(49.33% -0.0992 0.05) |
| OKLCH | oklch(49.33% 0.111 153.3) |
| XYZ | xyz(7.6785, 12.9453, 7.2472) |
| Luminance | 0.1295 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 5.21
Jungle Green
#048243
ΔE00 5.63
Spruce
#0A5F38
ΔE00 6.94
Pine
#2B5D34
ΔE00 7.69
Dark Sea Green
#11875D
ΔE00 7.87
Hunter Green
#355E3B
ΔE00 8.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7342 #731F50
analogous
#26731F #1F7342 #1F736C
triadic
#1F7342 #421F73 #73421F
tetradic
#1F7342 #1F2673 #731F50 #736C1F
square
#1F7342 #1F2673 #731F50 #736C1F
split-complementary
#1F7342 #6C1F73 #731F26
monochromatic
#06180E #124326 #1F7342 #2CA35E #41CC7B
Accessibility & contrast
On white
5.85
#1F7342 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.59
#1F7342 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7342
5.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7342 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7342 | 1.00 | 5.85 | 3.59 | 5.85 |
| #FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#73693F
Deuteranopia (green-blind)
#696245
Tritanopia (blue-blind)
#007167
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #1f7342; /* rgb */ color: rgb(31, 115, 66); /* oklch */ color: oklch(49.3% 0.111 153.3);
Tailwind
colors: {
custom: {
50: '#679c77',
500: '#1f7342',
950: '#000000',
},
}SCSS
$custom: #1f7342; $custom-light: #679c77; $custom-dark: #000000;
JSON
{
"hex": "#1f7342",
"rgb": {
"r": 31,
"g": 115,
"b": 66
},
"hsl": {
"h": 145,
"s": 57.534,
"l": 28.627
},
"oklch": {
"l": 0.49332,
"c": 0.11111,
"h": 153.3
},
"luminance": 0.12946
}Semantic roles & 50–950 ramp
primary
#1F7342
secondary
#A7477F
accent
#47A1E1
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#070E08
muted
#7A7E7B