#31370D#31370D

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

Color values

HEX#31370D
RGBrgb(49, 55, 13)
HSLhsl(69, 62%, 13%)
HSVhsv(69, 76%, 22%)
CMYKcmyk(10.9%, 0%, 76.4%, 78.4%)
CIE-LABlab(21.63, -9.54, 24.46)
CIE-LCHlch(21.63, 26.26, 111.31°)
OKLaboklab(32.11% -0.0282 0.0555)
OKLCHoklch(32.11% 0.062 117)
XYZxyz(2.7055, 3.4144, 0.8972)
Luminance0.0341 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31370D #130D37
analogous
#37280D #31370D #1C370D
triadic
#31370D #0D3137 #370D31
tetradic
#31370D #0D3728 #130D37 #370D1C
square
#31370D #0D3728 #130D37 #370D1C
split-complementary
#31370D #0D1C37 #280D37
monochromatic
#161906 #161906 #31370D #5D6819 #899A24

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31370D#FFFFFF#000000##FFFFFF
##31370D1.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)
#3B3408
Deuteranopia (green-blind)
#3B3410
Tritanopia (blue-blind)
#34342E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #31370d;
/* rgb */ color: rgb(49, 55, 13);
/* oklch */ color: oklch(32.1% 0.062 117.0);
Tailwind
colors: {
  custom: {
    50: '#6b6d4e',
    500: '#31370d',
    950: '#000000',
  },
}
SCSS
$custom: #31370d;
$custom-light: #6b6d4e;
$custom-dark: #000000;
JSON
{
  "hex": "#31370d",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 13
  },
  "hsl": {
    "h": 68.571,
    "s": 61.765,
    "l": 13.333
  },
  "oklch": {
    "l": 0.32114,
    "c": 0.06224,
    "h": 117
  },
  "luminance": 0.03414
}

Semantic roles & 50–950 ramp

primary
#31370D
secondary
#372D72
accent
#43E55A
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070702
muted
#7A7A78

Preview Lab

Preview with #31370D

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

Preview Lab → · Contrast checker → · Palette generator →

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