#31731E#31731E

#31731E is a mid, vivid green. Relative luminance 0.130; OKLCH L 49.4% C 0.136 H 139.6°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#31731E
RGBrgb(49, 115, 30)
HSLhsl(107, 59%, 28%)
HSVhsv(107, 74%, 45%)
CMYKcmyk(57.4%, 0%, 73.9%, 54.9%)
CIE-LABlab(42.77, -37.63, 38.75)
CIE-LCHlch(42.77, 54.02, 134.16°)
OKLaboklab(49.42% -0.1034 0.0881)
OKLCHoklch(49.42% 0.136 139.6)
XYZxyz(7.6314, 13.0075, 3.3366)
Luminance0.1301 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31731E #601E73
analogous
#5B731E #31731E #1E7335
triadic
#31731E #1E3173 #731E31
tetradic
#31731E #1E5B73 #601E73 #73351E
square
#31731E #1E5B73 #601E73 #73351E
split-complementary
#31731E #351E73 #731E5B
monochromatic
#0A1806 #1C4211 #31731E #46A42B #5ECD3F

Accessibility & contrast

On white

5.83
#31731E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#31731E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31731E
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31731E#FFFFFF#000000##FFFFFF
##31731E1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766810
Deuteranopia (green-blind)
#6E6326
Tritanopia (blue-blind)
#2A6F62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #31731e;
/* rgb */ color: rgb(49, 115, 30);
/* oklch */ color: oklch(49.4% 0.136 139.6);
Tailwind
colors: {
  custom: {
    50: '#719c5f',
    500: '#31731e',
    950: '#000000',
  },
}
SCSS
$custom: #31731e;
$custom-light: #719c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#31731e",
  "rgb": {
    "r": 49,
    "g": 115,
    "b": 30
  },
  "hsl": {
    "h": 106.588,
    "s": 58.621,
    "l": 28.431
  },
  "oklch": {
    "l": 0.49417,
    "c": 0.13583,
    "h": 139.6
  },
  "luminance": 0.13008
}

Semantic roles & 50–950 ramp

primary
#31731E
secondary
#9146A7
accent
#46E2BF
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31731E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#31731E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva