#31731C#31731C

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

Color values

HEX#31731C
RGBrgb(49, 115, 28)
HSLhsl(106, 61%, 28%)
HSVhsv(106, 76%, 45%)
CMYKcmyk(57.4%, 0%, 75.7%, 54.9%)
CIE-LABlab(42.76, -37.80, 39.55)
CIE-LCHlch(42.76, 54.71, 133.71°)
OKLaboklab(49.4% -0.104 0.0894)
OKLCHoklch(49.4% 0.137 139.3)
XYZxyz(7.6066, 12.9977, 3.2063)
Luminance0.1300 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31731C #5E1C73
analogous
#5C731C #31731C #1C7332
triadic
#31731C #1C3173 #731C31
tetradic
#31731C #1C5C73 #5E1C73 #73321C
square
#31731C #1C5C73 #5E1C73 #73321C
split-complementary
#31731C #321C73 #731C5C
monochromatic
#0A1906 #1C4210 #31731C #46A428 #5ECF3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #31731c;
/* rgb */ color: rgb(49, 115, 28);
/* oklch */ color: oklch(49.4% 0.137 139.3);
Tailwind
colors: {
  custom: {
    50: '#719c5e',
    500: '#31731c',
    950: '#000000',
  },
}
SCSS
$custom: #31731c;
$custom-light: #719c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#31731c",
  "rgb": {
    "r": 49,
    "g": 115,
    "b": 28
  },
  "hsl": {
    "h": 105.517,
    "s": 60.839,
    "l": 28.039
  },
  "oklch": {
    "l": 0.494,
    "c": 0.13717,
    "h": 139.3
  },
  "luminance": 0.12998
}

Semantic roles & 50–950 ramp

primary
#31731C
secondary
#8F43A7
accent
#44E4BD
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31731C

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

Preview Lab → · Contrast checker → · Palette generator →

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