#31390C#31390C

#31390C is a dark, moderate yellow-green. Relative luminance 0.036; OKLCH L 32.7% C 0.066 H 118.9°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#31390C
RGBrgb(49, 57, 12)
HSLhsl(71, 65%, 14%)
HSVhsv(71, 79%, 22%)
CMYKcmyk(14%, 0%, 78.9%, 77.6%)
CIE-LABlab(22.32, -10.83, 25.67)
CIE-LCHlch(22.32, 27.86, 112.88°)
OKLaboklab(32.67% -0.032 0.0578)
OKLCHoklch(32.67% 0.066 118.9)
XYZxyz(2.7962, 3.6058, 0.8964)
Luminance0.0361 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31390C #140C39
analogous
#392A0C #31390C #1A390C
triadic
#31390C #0C3139 #390C31
tetradic
#31390C #0C392A #140C39 #390C1A
square
#31390C #0C392A #140C39 #390C1A
split-complementary
#31390C #0C1A39 #2A0C39
monochromatic
#161905 #161905 #31390C #5C6C17 #889E21

Accessibility & contrast

On white

12.20
#31390C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#31390C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31390C
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31390C#FFFFFF#000000##FFFFFF
##31390C1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3506
Deuteranopia (green-blind)
#3C360F
Tritanopia (blue-blind)
#343530
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31390c;
/* rgb */ color: rgb(49, 57, 12);
/* oklch */ color: oklch(32.7% 0.066 118.9);
Tailwind
colors: {
  custom: {
    50: '#6b6f4e',
    500: '#31390c',
    950: '#000000',
  },
}
SCSS
$custom: #31390c;
$custom-light: #6b6f4e;
$custom-dark: #000000;
JSON
{
  "hex": "#31390c",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 12
  },
  "hsl": {
    "h": 70.667,
    "s": 65.217,
    "l": 13.529
  },
  "oklch": {
    "l": 0.32666,
    "c": 0.06605,
    "h": 118.9
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#31390C
secondary
#392C75
accent
#40E85E
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #31390C

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

Preview Lab → · Contrast checker → · Palette generator →

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