#31831B#31831B

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

Color values

HEX#31831B
RGBrgb(49, 131, 27)
HSLhsl(107, 66%, 31%)
HSVhsv(107, 79%, 51%)
CMYKcmyk(62.6%, 0%, 79.4%, 48.6%)
CIE-LABlab(48.21, -44.09, 45.32)
CIE-LCHlch(48.21, 63.23, 134.21°)
OKLaboklab(53.9% -0.121 0.1013)
OKLCHoklch(53.9% 0.158 140.1)
XYZxyz(9.5803, 16.9638, 3.8062)
Luminance0.1696 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31831B #6D1B83
analogous
#65831B #31831B #1B8339
triadic
#31831B #1B3183 #831B31
tetradic
#31831B #1B6583 #6D1B83 #83391B
square
#31831B #1B6583 #6D1B83 #83391B
split-complementary
#31831B #391B83 #831B65
monochromatic
#0B1E06 #1E5011 #31831B #44B625 #61D841

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31831B#FFFFFF#000000##FFFFFF
##31831B1.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)
#877702
Deuteranopia (green-blind)
#7D7027
Tritanopia (blue-blind)
#267F6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #31831b;
/* rgb */ color: rgb(49, 131, 27);
/* oklch */ color: oklch(53.9% 0.158 140.1);
Tailwind
colors: {
  custom: {
    50: '#74a860',
    500: '#31831b',
    950: '#000000',
  },
}
SCSS
$custom: #31831b;
$custom-light: #74a860;
$custom-dark: #000000;
JSON
{
  "hex": "#31831b",
  "rgb": {
    "r": 49,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 107.308,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53903,
    "c": 0.15785,
    "h": 140.1
  },
  "luminance": 0.16965
}

Semantic roles & 50–950 ramp

primary
#31831B
secondary
#9E43B6
accent
#3FE9C5
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #31831B

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

Preview Lab → · Contrast checker → · Palette generator →

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