#31380B#31380B

#31380B is a dark, moderate yellow. Relative luminance 0.035; OKLCH L 32.4% C 0.065 H 117.9°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#31380B
RGBrgb(49, 56, 11)
HSLhsl(69, 67%, 13%)
HSVhsv(69, 80%, 22%)
CMYKcmyk(12.5%, 0%, 80.4%, 78%)
CIE-LABlab(21.96, -10.30, 25.73)
CIE-LCHlch(21.96, 27.71, 111.82°)
OKLaboklab(32.38% -0.0306 0.0578)
OKLCHoklch(32.38% 0.065 117.9)
XYZxyz(2.7413, 3.5055, 0.8488)
Luminance0.0350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31380B #120B38
analogous
#38280B #31380B #1A380B
triadic
#31380B #0B3138 #380B31
tetradic
#31380B #0B3828 #120B38 #380B1A
square
#31380B #0B3828 #120B38 #380B1A
split-complementary
#31380B #0B1A38 #280B38
monochromatic
#161A05 #161A05 #31380B #5E6B15 #8B9E1F

Accessibility & contrast

On white

12.35
#31380B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#31380B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31380B
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31380B#FFFFFF#000000##FFFFFF
##31380B1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3405
Deuteranopia (green-blind)
#3C350E
Tritanopia (blue-blind)
#34342F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31380b;
/* rgb */ color: rgb(49, 56, 11);
/* oklch */ color: oklch(32.4% 0.065 117.9);
Tailwind
colors: {
  custom: {
    50: '#6b6e4d',
    500: '#31380b',
    950: '#000000',
  },
}
SCSS
$custom: #31380b;
$custom-light: #6b6e4d;
$custom-dark: #000000;
JSON
{
  "hex": "#31380b",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 11
  },
  "hsl": {
    "h": 69.333,
    "s": 67.164,
    "l": 13.137
  },
  "oklch": {
    "l": 0.32375,
    "c": 0.06544,
    "h": 117.9
  },
  "luminance": 0.03505
}

Semantic roles & 50–950 ramp

primary
#31380B
secondary
#362A75
accent
#3EEA59
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #31380B

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

Preview Lab → · Contrast checker → · Palette generator →

#31380B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva