#31831A#31831A

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

Color values

HEX#31831A
RGBrgb(49, 131, 26)
HSLhsl(107, 67%, 31%)
HSVhsv(107, 80%, 51%)
CMYKcmyk(62.6%, 0%, 80.2%, 48.6%)
CIE-LABlab(48.21, -44.16, 45.66)
CIE-LCHlch(48.21, 63.52, 134.05°)
OKLaboklab(53.9% -0.1213 0.1019)
OKLCHoklch(53.9% 0.158 140)
XYZxyz(9.5689, 16.9593, 3.7463)
Luminance0.1696 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31831A #6C1A83
analogous
#65831A #31831A #1A8337
triadic
#31831A #1A3183 #831A31
tetradic
#31831A #1A6583 #6C1A83 #83371A
square
#31831A #1A6583 #6C1A83 #83371A
split-complementary
#31831A #371A83 #831A65
monochromatic
#0B1D06 #1E5010 #31831A #44B624 #60D93F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31831A#FFFFFF#000000##FFFFFF
##31831A1.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)
#877700
Deuteranopia (green-blind)
#7D7026
Tritanopia (blue-blind)
#267E6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #31831a;
/* rgb */ color: rgb(49, 131, 26);
/* oklch */ color: oklch(53.9% 0.158 140.0);
Tailwind
colors: {
  custom: {
    50: '#74a860',
    500: '#31831a',
    950: '#000000',
  },
}
SCSS
$custom: #31831a;
$custom-light: #74a860;
$custom-dark: #000000;
JSON
{
  "hex": "#31831a",
  "rgb": {
    "r": 49,
    "g": 131,
    "b": 26
  },
  "hsl": {
    "h": 106.857,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53897,
    "c": 0.15838,
    "h": 140
  },
  "luminance": 0.1696
}

Semantic roles & 50–950 ramp

primary
#31831A
secondary
#9D42B7
accent
#3EEAC4
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #31831A

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

Preview Lab → · Contrast checker → · Palette generator →

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