#31370E#31370E

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

Color values

HEX#31370E
RGBrgb(49, 55, 14)
HSLhsl(69, 59%, 14%)
HSVhsv(69, 75%, 22%)
CMYKcmyk(10.9%, 0%, 74.5%, 78.4%)
CIE-LABlab(21.64, -9.46, 23.98)
CIE-LCHlch(21.64, 25.78, 111.53°)
OKLaboklab(32.13% -0.0279 0.0546)
OKLCHoklch(32.13% 0.061 117.1)
XYZxyz(2.7121, 3.4171, 0.9321)
Luminance0.0342 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31370E #140E37
analogous
#37280E #31370E #1C370E
triadic
#31370E #0E3137 #370E31
tetradic
#31370E #0E3728 #140E37 #370E1C
square
#31370E #0E3728 #140E37 #370E1C
split-complementary
#31370E #0E1C37 #280E37
monochromatic
#161806 #161806 #31370E #5C681A #889927

Accessibility & contrast

On white

12.47
#31370E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31370E
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31370E#FFFFFF#000000##FFFFFF
##31370E1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B3409
Deuteranopia (green-blind)
#3B3411
Tritanopia (blue-blind)
#34342F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #31370e;
/* rgb */ color: rgb(49, 55, 14);
/* oklch */ color: oklch(32.1% 0.061 117.1);
Tailwind
colors: {
  custom: {
    50: '#6b6d4f',
    500: '#31370e',
    950: '#000000',
  },
}
SCSS
$custom: #31370e;
$custom-light: #6b6d4f;
$custom-dark: #000000;
JSON
{
  "hex": "#31370e",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 14
  },
  "hsl": {
    "h": 68.78,
    "s": 59.42,
    "l": 13.529
  },
  "oklch": {
    "l": 0.32125,
    "c": 0.06131,
    "h": 117.1
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#31370E
secondary
#392F72
accent
#45E35C
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070702
muted
#7A7A78

Preview Lab

Preview with #31370E

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

Preview Lab → · Contrast checker → · Palette generator →

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