#31310F#31310F

#31310F is a dark, muted yellow. Relative luminance 0.029; OKLCH L 30.5% C 0.052 H 109.1°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#31310F
RGBrgb(49, 49, 15)
HSLhsl(60, 53%, 13%)
HSVhsv(60, 69%, 19%)
CMYKcmyk(0%, 0%, 69.4%, 80.8%)
CIE-LABlab(19.57, -5.61, 21.17)
CIE-LCHlch(19.57, 21.90, 104.84°)
OKLaboklab(30.47% -0.0169 0.0489)
OKLCHoklch(30.47% 0.052 109.1)
XYZxyz(2.4512, 2.8841, 0.8794)
Luminance0.0288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31310F #0F0F31
analogous
#31200F #31310F #20310F
triadic
#31310F #0F3131 #310F31
tetradic
#31310F #0F3120 #0F0F31 #310F20
square
#31310F #0F3120 #0F0F31 #310F20
split-complementary
#31310F #0F2031 #200F31
monochromatic
#171707 #171707 #31310F #60601D #8F8F2C

Accessibility & contrast

On white

13.32
#31310F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#31310F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31310F
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31310F#FFFFFF#000000##FFFFFF
##31310F1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#352F0B
Deuteranopia (green-blind)
#363011
Tritanopia (blue-blind)
#352E2A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #31310f;
/* rgb */ color: rgb(49, 49, 15);
/* oklch */ color: oklch(30.5% 0.052 109.1);
Tailwind
colors: {
  custom: {
    50: '#6a684f',
    500: '#31310f',
    950: '#000000',
  },
}
SCSS
$custom: #31310f;
$custom-light: #6a684f;
$custom-dark: #000000;
JSON
{
  "hex": "#31310f",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 15
  },
  "hsl": {
    "h": 60,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.30473,
    "c": 0.05171,
    "h": 109.1
  },
  "luminance": 0.02884
}

Semantic roles & 50–950 ramp

primary
#31310F
secondary
#31316B
accent
#4BDD4B
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060602
muted
#7A7A78

Preview Lab

Preview with #31310F

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

Preview Lab → · Contrast checker → · Palette generator →

#31310F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva