#31731F#31731F
#31731F is a mid, vivid green. Relative luminance 0.130; OKLCH L 49.4% C 0.135 H 139.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).
Color values
| HEX | #31731F |
|---|---|
| RGB | rgb(49, 115, 31) |
| HSL | hsl(107, 58%, 29%) |
| HSV | hsv(107, 73%, 45%) |
| CMYK | cmyk(57.4%, 0%, 73%, 54.9%) |
| CIE-LAB | lab(42.78, -37.55, 38.34) |
| CIE-LCH | lch(42.78, 53.66, 134.40°) |
| OKLab | oklab(49.43% -0.1031 0.0873) |
| OKLCH | oklch(49.43% 0.135 139.7) |
| XYZ | xyz(7.6444, 13.0127, 3.4049) |
| Luminance | 0.1301 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 4.09
Darkish Green
#287C37
ΔE00 4.94
Green
#008000
ΔE00 5.81
Dark Grass Green
#388004
ΔE00 5.84
Darkgreen
#006400
ΔE00 6.09
Darkolivegreen
#556B2F
ΔE00 7.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31731F #611F73
analogous
#5B731F #31731F #1F7337
triadic
#31731F #1F3173 #731F31
tetradic
#31731F #1F5B73 #611F73 #73371F
square
#31731F #1F5B73 #611F73 #73371F
split-complementary
#31731F #371F73 #731F5B
monochromatic
#0A1806 #1C4312 #31731F #46A32C #5ECC41
Accessibility & contrast
On white
5.83
#31731F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#31731F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #31731F
5.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31731F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31731F | 1.00 | 5.83 | 3.60 | 5.83 |
| #FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#766812
Deuteranopia (green-blind)
#6E6327
Tritanopia (blue-blind)
#2A6F62
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #31731f; /* rgb */ color: rgb(49, 115, 31); /* oklch */ color: oklch(49.4% 0.135 139.7);
Tailwind
colors: {
custom: {
50: '#719c60',
500: '#31731f',
950: '#000000',
},
}SCSS
$custom: #31731f; $custom-light: #719c60; $custom-dark: #000000;
JSON
{
"hex": "#31731f",
"rgb": {
"r": 49,
"g": 115,
"b": 31
},
"hsl": {
"h": 107.143,
"s": 57.534,
"l": 28.627
},
"oklch": {
"l": 0.49426,
"c": 0.13513,
"h": 139.7
},
"luminance": 0.13013
}Semantic roles & 50–950 ramp
primary
#31731F
secondary
#9247A7
accent
#47E1C0
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79