#31591B#31591B

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

Color values

HEX#31591B
RGBrgb(49, 89, 27)
HSLhsl(99, 53%, 23%)
HSVhsv(99, 70%, 35%)
CMYKcmyk(44.9%, 0%, 69.7%, 65.1%)
CIE-LABlab(33.72, -26.53, 30.51)
CIE-LCHlch(33.72, 40.43, 131.00°)
OKLaboklab(41.97% -0.0735 0.0703)
OKLCHoklch(41.97% 0.102 136.3)
XYZxyz(5.0367, 7.8766, 2.2916)
Luminance0.0788 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31591B #431B59
analogous
#50591B #31591B #1B5924
triadic
#31591B #1B3159 #591B31
tetradic
#31591B #1B5059 #431B59 #59241B
square
#31591B #1B5059 #431B59 #59241B
split-complementary
#31591B #241B59 #591B50
monochromatic
#0D1707 #172A0D #31591B #4B8829 #65B737

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31591B#FFFFFF#000000##FFFFFF
##31591B1.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)
#5C5113
Deuteranopia (green-blind)
#574E20
Tritanopia (blue-blind)
#2F564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #31591b;
/* rgb */ color: rgb(49, 89, 27);
/* oklch */ color: oklch(42.0% 0.102 136.3);
Tailwind
colors: {
  custom: {
    50: '#6d885b',
    500: '#31591b',
    950: '#000000',
  },
}
SCSS
$custom: #31591b;
$custom-light: #6d885b;
$custom-dark: #000000;
JSON
{
  "hex": "#31591b",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 27
  },
  "hsl": {
    "h": 98.71,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.41973,
    "c": 0.10175,
    "h": 136.3
  },
  "luminance": 0.07877
}

Semantic roles & 50–950 ramp

primary
#31591B
secondary
#73418F
accent
#4BDDA9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #31591B

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

Preview Lab → · Contrast checker → · Palette generator →

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