#31370C#31370C

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

Color values

HEX#31370C
RGBrgb(49, 55, 12)
HSLhsl(68, 64%, 13%)
HSVhsv(68, 78%, 22%)
CMYKcmyk(10.9%, 0%, 78.2%, 78.4%)
CIE-LABlab(21.62, -9.62, 24.92)
CIE-LCHlch(21.62, 26.72, 111.11°)
OKLaboklab(32.1% -0.0286 0.0563)
OKLCHoklch(32.1% 0.063 116.9)
XYZxyz(2.6992, 3.4119, 0.8641)
Luminance0.0341 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31370C #120C37
analogous
#37270C #31370C #1B370C
triadic
#31370C #0C3137 #370C31
tetradic
#31370C #0C3727 #120C37 #370C1B
square
#31370C #0C3727 #120C37 #370C1B
split-complementary
#31370C #0C1B37 #270C37
monochromatic
#161905 #161905 #31370C #5E6917 #8B9B22

Accessibility & contrast

On white

12.48
#31370C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31370C
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31370C#FFFFFF#000000##FFFFFF
##31370C1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31370c;
/* rgb */ color: rgb(49, 55, 12);
/* oklch */ color: oklch(32.1% 0.063 116.9);
Tailwind
colors: {
  custom: {
    50: '#6b6d4e',
    500: '#31370c',
    950: '#000000',
  },
}
SCSS
$custom: #31370c;
$custom-light: #6b6d4e;
$custom-dark: #000000;
JSON
{
  "hex": "#31370c",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 12
  },
  "hsl": {
    "h": 68.372,
    "s": 64.179,
    "l": 13.137
  },
  "oklch": {
    "l": 0.32103,
    "c": 0.06314,
    "h": 116.9
  },
  "luminance": 0.03412
}

Semantic roles & 50–950 ramp

primary
#31370C
secondary
#362C73
accent
#41E758
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #31370C

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

Preview Lab → · Contrast checker → · Palette generator →

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