#31831D#31831D

#31831D is a mid, vivid green. Relative luminance 0.170; OKLCH L 53.9% C 0.157 H 140.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#31831D
RGBrgb(49, 131, 29)
HSLhsl(108, 64%, 31%)
HSVhsv(108, 78%, 51%)
CMYKcmyk(62.6%, 0%, 77.9%, 48.6%)
CIE-LABlab(48.23, -43.95, 44.63)
CIE-LCHlch(48.23, 62.64, 134.56°)
OKLaboklab(53.92% -0.1205 0.1002)
OKLCHoklch(53.92% 0.157 140.3)
XYZxyz(9.6042, 16.9734, 3.9322)
Luminance0.1697 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31831D #6F1D83
analogous
#64831D #31831D #1D833C
triadic
#31831D #1D3183 #831D31
tetradic
#31831D #1D6483 #6F1D83 #833C1D
square
#31831D #1D6483 #6F1D83 #833C1D
split-complementary
#31831D #3C1D83 #831D64
monochromatic
#0C1F07 #1E5112 #31831D #44B528 #61D645

Accessibility & contrast

On white

4.78
#31831D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#31831D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31831D
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31831D#FFFFFF#000000##FFFFFF
##31831D1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877706
Deuteranopia (green-blind)
#7D7028
Tritanopia (blue-blind)
#267F70
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #31831d;
/* rgb */ color: rgb(49, 131, 29);
/* oklch */ color: oklch(53.9% 0.157 140.3);
Tailwind
colors: {
  custom: {
    50: '#74a861',
    500: '#31831d',
    950: '#000000',
  },
}
SCSS
$custom: #31831d;
$custom-light: #74a861;
$custom-dark: #000000;
JSON
{
  "hex": "#31831d",
  "rgb": {
    "r": 49,
    "g": 131,
    "b": 29
  },
  "hsl": {
    "h": 108.235,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53917,
    "c": 0.15673,
    "h": 140.3
  },
  "luminance": 0.16974
}

Semantic roles & 50–950 ramp

primary
#31831D
secondary
#A046B6
accent
#41E7C6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #31831D

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

Preview Lab → · Contrast checker → · Palette generator →

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