#31350B#31350B

#31350B is a dark, moderate yellow. Relative luminance 0.032; OKLCH L 31.5% C 0.061 H 114.6°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#31350B
RGBrgb(49, 53, 11)
HSLhsl(66, 66%, 13%)
HSVhsv(66, 79%, 21%)
CMYKcmyk(7.5%, 0%, 79.2%, 79.2%)
CIE-LABlab(20.92, -8.47, 24.60)
CIE-LCHlch(20.92, 26.01, 109.00°)
OKLaboklab(31.53% -0.0255 0.0556)
OKLCHoklch(31.53% 0.061 114.6)
XYZxyz(2.6002, 3.2234, 0.8017)
Luminance0.0322 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31350B #0F0B35
analogous
#35240B #31350B #1C350B
triadic
#31350B #0B3135 #350B31
tetradic
#31350B #0B3524 #0F0B35 #350B1C
square
#31350B #0B3524 #0F0B35 #350B1C
split-complementary
#31350B #0B1C35 #240B35
monochromatic
#171905 #171905 #31350B #606816 #8F9A20

Accessibility & contrast

On white

12.77
#31350B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#31350B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31350B
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31350B#FFFFFF#000000##FFFFFF
##31350B1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393206
Deuteranopia (green-blind)
#39330E
Tritanopia (blue-blind)
#35312D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #31350b;
/* rgb */ color: rgb(49, 53, 11);
/* oklch */ color: oklch(31.5% 0.061 114.6);
Tailwind
colors: {
  custom: {
    50: '#6b6c4d',
    500: '#31350b',
    950: '#000000',
  },
}
SCSS
$custom: #31350b;
$custom-light: #6b6c4d;
$custom-dark: #000000;
JSON
{
  "hex": "#31350b",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 11
  },
  "hsl": {
    "h": 65.714,
    "s": 65.625,
    "l": 12.549
  },
  "oklch": {
    "l": 0.31534,
    "c": 0.06118,
    "h": 114.6
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#31350B
secondary
#312A72
accent
#3FE94F
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #31350B

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

Preview Lab → · Contrast checker → · Palette generator →

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