#31391C#31391C

#31391C is a dark, muted yellow-green. Relative luminance 0.037; OKLCH L 32.9% C 0.048 H 121.7°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#31391C
RGBrgb(49, 57, 28)
HSLhsl(77, 34%, 17%)
HSVhsv(77, 51%, 22%)
CMYKcmyk(14%, 0%, 50.9%, 77.6%)
CIE-LABlab(22.52, -9.11, 16.92)
CIE-LCHlch(22.52, 19.22, 118.30°)
OKLaboklab(32.89% -0.0253 0.041)
OKLCHoklch(32.89% 0.048 121.7)
XYZxyz(2.9394, 3.6631, 1.6506)
Luminance0.0366 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31391C #241C39
analogous
#39331C #31391C #23391C
triadic
#31391C #1C3139 #391C31
tetradic
#31391C #1C3933 #241C39 #391C23
square
#31391C #1C3933 #241C39 #391C23
split-complementary
#31391C #1C2339 #331C39
monochromatic
#12150A #12150A #31391C #546230 #788B44

Accessibility & contrast

On white

12.12
#31391C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#31391C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31391C
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31391C#FFFFFF#000000##FFFFFF
##31391C1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C361A
Deuteranopia (green-blind)
#3B361E
Tritanopia (blue-blind)
#333632
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #31391c;
/* rgb */ color: rgb(49, 57, 28);
/* oklch */ color: oklch(32.9% 0.048 121.7);
Tailwind
colors: {
  custom: {
    50: '#6a6f58',
    500: '#31391c',
    950: '#000000',
  },
}
SCSS
$custom: #31391c;
$custom-light: #6a6f58;
$custom-dark: #000000;
JSON
{
  "hex": "#31391c",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 28
  },
  "hsl": {
    "h": 76.552,
    "s": 34.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.32893,
    "c": 0.04815,
    "h": 121.7
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#31391C
secondary
#4F436E
accent
#5ECA7C
background
#F6F6F5
surface
#EBECE9
border
#C6C7C5
text
#060703
muted
#7A7A78

Preview Lab

Preview with #31391C

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

Preview Lab → · Contrast checker → · Palette generator →

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