#31811F#31811F

#31811F is a mid, vivid green. Relative luminance 0.165; OKLCH L 53.4% C 0.153 H 140.4°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#31811F
RGBrgb(49, 129, 31)
HSLhsl(109, 61%, 31%)
HSVhsv(109, 76%, 51%)
CMYKcmyk(62%, 0%, 76%, 49.4%)
CIE-LABlab(47.56, -43.05, 43.22)
CIE-LCHlch(47.56, 61.00, 134.88°)
OKLaboklab(53.37% -0.118 0.0975)
OKLCHoklch(53.37% 0.153 140.4)
XYZxyz(9.3638, 16.4516, 3.9781)
Luminance0.1645 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31811F #6F1F81
analogous
#62811F #31811F #1F813E
triadic
#31811F #1F3181 #811F31
tetradic
#31811F #1F6281 #6F1F81 #813E1F
square
#31811F #1F6281 #6F1F81 #813E1F
split-complementary
#31811F #3E1F81 #811F62
monochromatic
#0C1E07 #1E5013 #31811F #44B22B #61D347

Accessibility & contrast

On white

4.89
#31811F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#31811F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31811F
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31811F#FFFFFF#000000##FFFFFF
##31811F1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85750C
Deuteranopia (green-blind)
#7B6E29
Tritanopia (blue-blind)
#267D6E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #31811f;
/* rgb */ color: rgb(49, 129, 31);
/* oklch */ color: oklch(53.4% 0.153 140.4);
Tailwind
colors: {
  custom: {
    50: '#73a662',
    500: '#31811f',
    950: '#000000',
  },
}
SCSS
$custom: #31811f;
$custom-light: #73a662;
$custom-dark: #000000;
JSON
{
  "hex": "#31811f",
  "rgb": {
    "r": 49,
    "g": 129,
    "b": 31
  },
  "hsl": {
    "h": 108.98,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53372,
    "c": 0.15307,
    "h": 140.4
  },
  "luminance": 0.16452
}

Semantic roles & 50–950 ramp

primary
#31811F
secondary
#A048B4
accent
#43E4C7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #31811F

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

Preview Lab → · Contrast checker → · Palette generator →

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