#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
RGBrgb(49, 115, 31)
HSLhsl(107, 58%, 29%)
HSVhsv(107, 73%, 45%)
CMYKcmyk(57.4%, 0%, 73%, 54.9%)
CIE-LABlab(42.78, -37.55, 38.34)
CIE-LCHlch(42.78, 53.66, 134.40°)
OKLaboklab(49.43% -0.1031 0.0873)
OKLCHoklch(49.43% 0.135 139.7)
XYZxyz(7.6444, 13.0127, 3.4049)
Luminance0.1301 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

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
##31731F1.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)
#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

Preview Lab

Preview with #31731F

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

Preview Lab → · Contrast checker → · Palette generator →

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