#31350C#31350C

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

Color values

HEX#31350C
RGBrgb(49, 53, 12)
HSLhsl(66, 63%, 13%)
HSVhsv(66, 77%, 21%)
CMYKcmyk(7.5%, 0%, 77.4%, 79.2%)
CIE-LABlab(20.93, -8.39, 24.16)
CIE-LCHlch(20.93, 25.58, 109.15°)
OKLaboklab(31.54% -0.0252 0.0548)
OKLCHoklch(31.54% 0.06 114.7)
XYZxyz(2.6062, 3.2258, 0.8331)
Luminance0.0323 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31350C #100C35
analogous
#35240C #31350C #1C350C
triadic
#31350C #0C3135 #350C31
tetradic
#31350C #0C3524 #100C35 #350C1C
square
#31350C #0C3524 #100C35 #350C1C
split-complementary
#31350C #0C1C35 #240C35
monochromatic
#171906 #171906 #31350C #5F6717 #8D9923

Accessibility & contrast

On white

12.76
#31350C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#31350C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31350C
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31350C#FFFFFF#000000##FFFFFF
##31350C1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31350c;
/* rgb */ color: rgb(49, 53, 12);
/* oklch */ color: oklch(31.5% 0.060 114.7);
Tailwind
colors: {
  custom: {
    50: '#6b6c4d',
    500: '#31350c',
    950: '#000000',
  },
}
SCSS
$custom: #31350c;
$custom-light: #6b6c4d;
$custom-dark: #000000;
JSON
{
  "hex": "#31350c",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 12
  },
  "hsl": {
    "h": 65.854,
    "s": 63.077,
    "l": 12.745
  },
  "oklch": {
    "l": 0.31544,
    "c": 0.06029,
    "h": 114.7
  },
  "luminance": 0.03226
}

Semantic roles & 50–950 ramp

primary
#31350C
secondary
#332C71
accent
#42E652
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #31350C

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

Preview Lab → · Contrast checker → · Palette generator →

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