#31591C#31591C

#31591C is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 42.0% C 0.101 H 136.5°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#31591C
RGBrgb(49, 89, 28)
HSLhsl(99, 52%, 23%)
HSVhsv(99, 69%, 35%)
CMYKcmyk(44.9%, 0%, 68.5%, 65.1%)
CIE-LABlab(33.73, -26.42, 30.04)
CIE-LCHlch(33.73, 40.00, 131.34°)
OKLaboklab(41.98% -0.0732 0.0694)
OKLCHoklch(41.98% 0.101 136.5)
XYZxyz(5.0485, 7.8813, 2.3536)
Luminance0.0788 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31591C #441C59
analogous
#4F591C #31591C #1C5925
triadic
#31591C #1C3159 #591C31
tetradic
#31591C #1C4F59 #441C59 #59251C
square
#31591C #1C4F59 #441C59 #59251C
split-complementary
#31591C #251C59 #591C4F
monochromatic
#0D1707 #172A0D #31591C #4B882B #64B639

Accessibility & contrast

On white

8.15
#31591C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#31591C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31591C
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31591C#FFFFFF#000000##FFFFFF
##31591C1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5115
Deuteranopia (green-blind)
#574E21
Tritanopia (blue-blind)
#2F564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #31591c;
/* rgb */ color: rgb(49, 89, 28);
/* oklch */ color: oklch(42.0% 0.101 136.5);
Tailwind
colors: {
  custom: {
    50: '#6d885b',
    500: '#31591c',
    950: '#000000',
  },
}
SCSS
$custom: #31591c;
$custom-light: #6d885b;
$custom-dark: #000000;
JSON
{
  "hex": "#31591c",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 28
  },
  "hsl": {
    "h": 99.344,
    "s": 52.137,
    "l": 22.941
  },
  "oklch": {
    "l": 0.41984,
    "c": 0.10087,
    "h": 136.5
  },
  "luminance": 0.07882
}

Semantic roles & 50–950 ramp

primary
#31591C
secondary
#74428F
accent
#4CDCAA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #31591C

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

Preview Lab → · Contrast checker → · Palette generator →

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