#31391F#31391F

#31391F is a dark, muted yellow-green. Relative luminance 0.037; OKLCH L 33.0% C 0.044 H 122.8°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#31391F
RGBrgb(49, 57, 31)
HSLhsl(78, 30%, 17%)
HSVhsv(78, 46%, 22%)
CMYKcmyk(14%, 0%, 45.6%, 77.6%)
CIE-LABlab(22.58, -8.67, 15.10)
CIE-LCHlch(22.58, 17.42, 119.86°)
OKLaboklab(32.95% -0.0238 0.037)
OKLCHoklch(32.95% 0.044 122.8)
XYZxyz(2.9771, 3.6781, 1.8492)
Luminance0.0368 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31391F #271F39
analogous
#39341F #31391F #24391F
triadic
#31391F #1F3139 #391F31
tetradic
#31391F #1F3934 #271F39 #391F24
square
#31391F #1F3934 #271F39 #391F24
split-complementary
#31391F #1F2439 #341F39
monochromatic
#11140B #11140B #31391F #536135 #75884A

Accessibility & contrast

On white

12.10
#31391F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#31391F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31391F
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31391F#FFFFFF#000000##FFFFFF
##31391F1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C361D
Deuteranopia (green-blind)
#3B3620
Tritanopia (blue-blind)
#333733
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #31391f;
/* rgb */ color: rgb(49, 57, 31);
/* oklch */ color: oklch(33.0% 0.044 122.8);
Tailwind
colors: {
  custom: {
    50: '#696f5b',
    500: '#31391f',
    950: '#000000',
  },
}
SCSS
$custom: #31391f;
$custom-light: #696f5b;
$custom-dark: #000000;
JSON
{
  "hex": "#31391f",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 31
  },
  "hsl": {
    "h": 78.462,
    "s": 29.545,
    "l": 17.255
  },
  "oklch": {
    "l": 0.32952,
    "c": 0.04401,
    "h": 122.8
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#31391F
secondary
#53476C
accent
#62C681
background
#F6F6F5
surface
#EBECE9
border
#C6C7C5
text
#060704
muted
#7A7A79

Preview Lab

Preview with #31391F

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

Preview Lab → · Contrast checker → · Palette generator →

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