#31731D#31731D

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

Color values

HEX#31731D
RGBrgb(49, 115, 29)
HSLhsl(106, 60%, 28%)
HSVhsv(106, 75%, 45%)
CMYKcmyk(57.4%, 0%, 74.8%, 54.9%)
CIE-LABlab(42.77, -37.72, 39.15)
CIE-LCHlch(42.77, 54.37, 133.93°)
OKLaboklab(49.41% -0.1037 0.0888)
OKLCHoklch(49.41% 0.137 139.4)
XYZxyz(7.6188, 13.0025, 3.2704)
Luminance0.1300 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31731D #5F1D73
analogous
#5C731D #31731D #1D7334
triadic
#31731D #1D3173 #731D31
tetradic
#31731D #1D5C73 #5F1D73 #73341D
square
#31731D #1D5C73 #5F1D73 #73341D
split-complementary
#31731D #341D73 #731D5C
monochromatic
#0A1806 #1C4211 #31731D #46A429 #5ECE3C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31731D#FFFFFF#000000##FFFFFF
##31731D1.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)
#76680E
Deuteranopia (green-blind)
#6E6325
Tritanopia (blue-blind)
#2A6F62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #31731d;
/* rgb */ color: rgb(49, 115, 29);
/* oklch */ color: oklch(49.4% 0.137 139.4);
Tailwind
colors: {
  custom: {
    50: '#719c5f',
    500: '#31731d',
    950: '#000000',
  },
}
SCSS
$custom: #31731d;
$custom-light: #719c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#31731d",
  "rgb": {
    "r": 49,
    "g": 115,
    "b": 29
  },
  "hsl": {
    "h": 106.047,
    "s": 59.722,
    "l": 28.235
  },
  "oklch": {
    "l": 0.49409,
    "c": 0.13651,
    "h": 139.4
  },
  "luminance": 0.13003
}

Semantic roles & 50–950 ramp

primary
#31731D
secondary
#9045A7
accent
#45E3BE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31731D

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

Preview Lab → · Contrast checker → · Palette generator →

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