#31340F#31340F

#31340F is a dark, muted yellow. Relative luminance 0.031; OKLCH L 31.3% C 0.056 H 113.5°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#31340F
RGBrgb(49, 52, 15)
HSLhsl(65, 55%, 13%)
HSVhsv(65, 71%, 20%)
CMYKcmyk(5.8%, 0%, 71.2%, 79.6%)
CIE-LABlab(20.61, -7.52, 22.34)
CIE-LCHlch(20.61, 23.57, 108.60°)
OKLaboklab(31.3% -0.0223 0.0513)
OKLCHoklch(31.3% 0.056 113.5)
XYZxyz(2.5809, 3.1435, 0.9226)
Luminance0.0314 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31340F #120F34
analogous
#34240F #31340F #1E340F
triadic
#31340F #0F3134 #340F31
tetradic
#31340F #0F3424 #120F34 #340F1E
square
#31340F #0F3424 #120F34 #340F1E
split-complementary
#31340F #0F1E34 #240F34
monochromatic
#161807 #161807 #31340F #5E631D #8B932A

Accessibility & contrast

On white

12.89
#31340F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#31340F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31340F
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31340F#FFFFFF#000000##FFFFFF
##31340F1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38310B
Deuteranopia (green-blind)
#383211
Tritanopia (blue-blind)
#35312C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #31340f;
/* rgb */ color: rgb(49, 52, 15);
/* oklch */ color: oklch(31.3% 0.056 113.5);
Tailwind
colors: {
  custom: {
    50: '#6a6b4f',
    500: '#31340f',
    950: '#000000',
  },
}
SCSS
$custom: #31340f;
$custom-light: #6a6b4f;
$custom-dark: #000000;
JSON
{
  "hex": "#31340f",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 15
  },
  "hsl": {
    "h": 64.865,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.31301,
    "c": 0.05592,
    "h": 113.5
  },
  "luminance": 0.03143
}

Semantic roles & 50–950 ramp

primary
#31340F
secondary
#36316E
accent
#49DF55
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060602
muted
#7A7A78

Preview Lab

Preview with #31340F

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

Preview Lab → · Contrast checker → · Palette generator →

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