#31731B#31731B

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

Color values

HEX#31731B
RGBrgb(49, 115, 27)
HSLhsl(105, 62%, 28%)
HSVhsv(105, 77%, 45%)
CMYKcmyk(57.4%, 0%, 76.5%, 54.9%)
CIE-LABlab(42.75, -37.88, 39.94)
CIE-LCHlch(42.75, 55.05, 133.49°)
OKLaboklab(49.39% -0.1043 0.0901)
OKLCHoklch(49.39% 0.138 139.2)
XYZxyz(7.5949, 12.9929, 3.1444)
Luminance0.1299 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31731B #5D1B73
analogous
#5D731B #31731B #1B7331
triadic
#31731B #1B3173 #731B31
tetradic
#31731B #1B5D73 #5D1B73 #73311B
square
#31731B #1B5D73 #5D1B73 #73311B
split-complementary
#31731B #311B73 #731B5D
monochromatic
#0B1906 #1C410F #31731B #46A527 #5ED038

Accessibility & contrast

On white

5.84
#31731B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #31731B
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31731B#FFFFFF#000000##FFFFFF
##31731B1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77680A
Deuteranopia (green-blind)
#6E6324
Tritanopia (blue-blind)
#2A6F62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #31731b;
/* rgb */ color: rgb(49, 115, 27);
/* oklch */ color: oklch(49.4% 0.138 139.2);
Tailwind
colors: {
  custom: {
    50: '#719c5e',
    500: '#31731b',
    950: '#000000',
  },
}
SCSS
$custom: #31731b;
$custom-light: #719c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#31731b",
  "rgb": {
    "r": 49,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 105,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.49392,
    "c": 0.13782,
    "h": 139.2
  },
  "luminance": 0.12994
}

Semantic roles & 50–950 ramp

primary
#31731B
secondary
#8E42A8
accent
#43E5BC
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31731B

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

Preview Lab → · Contrast checker → · Palette generator →

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