#31831C#31831C

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

Color values

HEX#31831C
RGBrgb(49, 131, 28)
HSLhsl(108, 65%, 31%)
HSVhsv(108, 79%, 51%)
CMYKcmyk(62.6%, 0%, 78.6%, 48.6%)
CIE-LABlab(48.22, -44.02, 44.98)
CIE-LCHlch(48.22, 62.94, 134.39°)
OKLaboklab(53.91% -0.1208 0.1008)
OKLCHoklch(53.91% 0.157 140.2)
XYZxyz(9.5921, 16.9685, 3.8681)
Luminance0.1697 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31831C #6E1C83
analogous
#64831C #31831C #1C833A
triadic
#31831C #1C3183 #831C31
tetradic
#31831C #1C6483 #6E1C83 #833A1C
square
#31831C #1C6483 #6E1C83 #833A1C
split-complementary
#31831C #3A1C83 #831C64
monochromatic
#0B1E06 #1E5111 #31831C #44B527 #61D743

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31831C#FFFFFF#000000##FFFFFF
##31831C1.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)
#877704
Deuteranopia (green-blind)
#7D7027
Tritanopia (blue-blind)
#267F70
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #31831c;
/* rgb */ color: rgb(49, 131, 28);
/* oklch */ color: oklch(53.9% 0.157 140.2);
Tailwind
colors: {
  custom: {
    50: '#74a860',
    500: '#31831c',
    950: '#000000',
  },
}
SCSS
$custom: #31831c;
$custom-light: #74a860;
$custom-dark: #000000;
JSON
{
  "hex": "#31831c",
  "rgb": {
    "r": 49,
    "g": 131,
    "b": 28
  },
  "hsl": {
    "h": 107.767,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5391,
    "c": 0.1573,
    "h": 140.2
  },
  "luminance": 0.16969
}

Semantic roles & 50–950 ramp

primary
#31831C
secondary
#9F45B6
accent
#40E8C6
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #31831C

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

Preview Lab → · Contrast checker → · Palette generator →

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