#31831F#31831F

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

Color values

HEX#31831F
RGBrgb(49, 131, 31)
HSLhsl(109, 62%, 32%)
HSVhsv(109, 76%, 51%)
CMYKcmyk(62.6%, 0%, 76.3%, 48.6%)
CIE-LABlab(48.24, -43.80, 43.90)
CIE-LCHlch(48.24, 62.02, 134.93°)
OKLaboklab(53.93% -0.12 0.099)
OKLCHoklch(53.93% 0.156 140.5)
XYZxyz(9.6298, 16.9836, 4.0667)
Luminance0.1698 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31831F #711F83
analogous
#63831F #31831F #1F833F
triadic
#31831F #1F3183 #831F31
tetradic
#31831F #1F6383 #711F83 #833F1F
square
#31831F #1F6383 #711F83 #833F1F
split-complementary
#31831F #3F1F83 #831F63
monochromatic
#0C2008 #1E5213 #31831F #44B42B #62D449

Accessibility & contrast

On white

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

On black

4.40
#31831F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##31831F#FFFFFF#000000##FFFFFF
##31831F1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87770B
Deuteranopia (green-blind)
#7D7029
Tritanopia (blue-blind)
#257F70
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #31831f;
/* rgb */ color: rgb(49, 131, 31);
/* oklch */ color: oklch(53.9% 0.156 140.5);
Tailwind
colors: {
  custom: {
    50: '#74a862',
    500: '#31831f',
    950: '#000000',
  },
}
SCSS
$custom: #31831f;
$custom-light: #74a862;
$custom-dark: #000000;
JSON
{
  "hex": "#31831f",
  "rgb": {
    "r": 49,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 109.2,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.53932,
    "c": 0.15555,
    "h": 140.5
  },
  "luminance": 0.16984
}

Semantic roles & 50–950 ramp

primary
#31831F
secondary
#A248B6
accent
#43E5C8
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #31831F

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

Preview Lab → · Contrast checker → · Palette generator →

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