#31371E#31371E

#31371E is a dark, muted yellow-green. Relative luminance 0.035; OKLCH L 32.4% C 0.042 H 119.8°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#31371E
RGBrgb(49, 55, 30)
HSLhsl(74, 29%, 17%)
HSVhsv(74, 45%, 22%)
CMYKcmyk(10.9%, 0%, 45.5%, 78.4%)
CIE-LABlab(21.87, -7.58, 14.83)
CIE-LCHlch(21.87, 16.66, 117.07°)
OKLaboklab(32.38% -0.0208 0.0363)
OKLCHoklch(32.38% 0.042 119.8)
XYZxyz(2.8672, 3.4791, 1.7485)
Luminance0.0348 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31371E #241E37
analogous
#37311E #31371E #25371E
triadic
#31371E #1E3137 #371E31
tetradic
#31371E #1E3731 #241E37 #371E25
square
#31371E #1E3731 #241E37 #371E25
split-complementary
#31371E #1E2537 #311E37
monochromatic
#12140B #12140B #31371E #545F34 #788649

Accessibility & contrast

On white

12.38
#31371E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#31371E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31371E
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31371E#FFFFFF#000000##FFFFFF
##31371E1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A341C
Deuteranopia (green-blind)
#39341F
Tritanopia (blue-blind)
#333531
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #31371e;
/* rgb */ color: rgb(49, 55, 30);
/* oklch */ color: oklch(32.4% 0.042 119.8);
Tailwind
colors: {
  custom: {
    50: '#696d5a',
    500: '#31371e',
    950: '#000000',
  },
}
SCSS
$custom: #31371e;
$custom-light: #696d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#31371e",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 30
  },
  "hsl": {
    "h": 74.4,
    "s": 29.412,
    "l": 16.667
  },
  "oklch": {
    "l": 0.32379,
    "c": 0.04188,
    "h": 119.8
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

primary
#31371E
secondary
#4F466B
accent
#62C67A
background
#F6F6F5
surface
#EBEBE9
border
#C6C6C5
text
#060703
muted
#7A7A78

Preview Lab

Preview with #31371E

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

Preview Lab → · Contrast checker → · Palette generator →

#31371E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva