#31370A#31370A

#31370A is a dark, moderate yellow. Relative luminance 0.034; OKLCH L 32.1% C 0.065 H 116.8°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#31370A
RGBrgb(49, 55, 10)
HSLhsl(68, 69%, 13%)
HSVhsv(68, 82%, 22%)
CMYKcmyk(10.9%, 0%, 81.8%, 78.4%)
CIE-LABlab(21.61, -9.77, 25.76)
CIE-LCHlch(21.61, 27.55, 110.76°)
OKLaboklab(32.08% -0.0292 0.0579)
OKLCHoklch(32.08% 0.065 116.8)
XYZxyz(2.6877, 3.4073, 0.8032)
Luminance0.0341 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31370A #100A37
analogous
#37260A #31370A #1A370A
triadic
#31370A #0A3137 #370A31
tetradic
#31370A #0A3726 #100A37 #370A1A
square
#31370A #0A3726 #100A37 #370A1A
split-complementary
#31370A #0A1A37 #260A37
monochromatic
#171A05 #171A05 #31370A #5F6B13 #8D9F1D

Accessibility & contrast

On white

12.49
#31370A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#31370A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31370A
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31370A#FFFFFF#000000##FFFFFF
##31370A1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B3404
Deuteranopia (green-blind)
#3B340E
Tritanopia (blue-blind)
#35332E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #31370a;
/* rgb */ color: rgb(49, 55, 10);
/* oklch */ color: oklch(32.1% 0.065 116.8);
Tailwind
colors: {
  custom: {
    50: '#6b6d4c',
    500: '#31370a',
    950: '#000000',
  },
}
SCSS
$custom: #31370a;
$custom-light: #6b6d4c;
$custom-dark: #000000;
JSON
{
  "hex": "#31370a",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 10
  },
  "hsl": {
    "h": 68,
    "s": 69.231,
    "l": 12.745
  },
  "oklch": {
    "l": 0.32084,
    "c": 0.06483,
    "h": 116.8
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#31370A
secondary
#332874
accent
#3CEC53
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #31370A

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

Preview Lab → · Contrast checker → · Palette generator →

#31370A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva