#337F1F#337F1F
#337F1F is a mid, vivid green. Relative luminance 0.160; OKLCH L 52.9% C 0.150 H 140.0°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #337F1F |
|---|---|
| RGB | rgb(51, 127, 31) |
| HSL | hsl(108, 61%, 31%) |
| HSV | hsv(108, 76%, 50%) |
| CMYK | cmyk(59.8%, 0%, 75.6%, 50.2%) |
| CIE-LAB | lab(46.95, -41.75, 42.63) |
| CIE-LCH | lch(46.95, 59.67, 134.40°) |
| OKLab | oklab(52.88% -0.1146 0.0963) |
| OKLCH | oklch(52.88% 0.15 140) |
| XYZ | xyz(9.2015, 15.9807, 3.8957) |
| Luminance | 0.1598 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.00
Dark Grass Green
#388004
ΔE00 2.77
Green
#008000
ΔE00 3.25
Forestgreen (CSS)
#228B22
ΔE00 4.40
Darkish Green
#287C37
ΔE00 4.91
Emerald Green
#028F1E
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#337F1F #6B1F7F
analogous
#637F1F #337F1F #1F7F3B
triadic
#337F1F #1F337F #7F1F33
tetradic
#337F1F #1F637F #6B1F7F #7F3B1F
square
#337F1F #1F637F #6B1F7F #7F3B1F
split-complementary
#337F1F #3B1F7F #7F1F63
monochromatic
#0B1D07 #1F4E13 #337F1F #47B02B #64D246
Accessibility & contrast
On white
5.00
#337F1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.20
#337F1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #337F1F
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##337F1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##337F1F | 1.00 | 5.00 | 4.20 | 5.00 |
| #FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#83730D
Deuteranopia (green-blind)
#796D29
Tritanopia (blue-blind)
#2A7B6C
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #337f1f; /* rgb */ color: rgb(51, 127, 31); /* oklch */ color: oklch(52.9% 0.150 140.0);
Tailwind
colors: {
custom: {
50: '#74a561',
500: '#337f1f',
950: '#000000',
},
}SCSS
$custom: #337f1f; $custom-light: #74a561; $custom-dark: #000000;
JSON
{
"hex": "#337f1f",
"rgb": {
"r": 51,
"g": 127,
"b": 31
},
"hsl": {
"h": 107.5,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.52884,
"c": 0.14968,
"h": 140
},
"luminance": 0.15981
}Semantic roles & 50–950 ramp
primary
#337F1F
secondary
#9C48B2
accent
#44E4C3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A