#31340E#31340E

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

Color values

HEX#31340E
RGBrgb(49, 52, 14)
HSLhsl(65, 58%, 13%)
HSVhsv(65, 73%, 20%)
CMYKcmyk(5.8%, 0%, 73.1%, 79.6%)
CIE-LABlab(20.60, -7.60, 22.84)
CIE-LCHlch(20.60, 24.07, 108.41°)
OKLaboklab(31.29% -0.0227 0.0522)
OKLCHoklch(31.29% 0.057 113.5)
XYZxyz(2.5739, 3.1407, 0.8860)
Luminance0.0314 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31340E #110E34
analogous
#34240E #31340E #1E340E
triadic
#31340E #0E3134 #340E31
tetradic
#31340E #0E3424 #110E34 #340E1E
square
#31340E #0E3424 #110E34 #340E1E
split-complementary
#31340E #0E1E34 #240E34
monochromatic
#171806 #171806 #31340E #5E641B #8C9428

Accessibility & contrast

On white

12.90
#31340E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31340E
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31340E#FFFFFF#000000##FFFFFF
##31340E1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383109
Deuteranopia (green-blind)
#383210
Tritanopia (blue-blind)
#35312C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #31340e;
/* rgb */ color: rgb(49, 52, 14);
/* oklch */ color: oklch(31.3% 0.057 113.5);
Tailwind
colors: {
  custom: {
    50: '#6a6b4e',
    500: '#31340e',
    950: '#000000',
  },
}
SCSS
$custom: #31340e;
$custom-light: #6a6b4e;
$custom-dark: #000000;
JSON
{
  "hex": "#31340e",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 14
  },
  "hsl": {
    "h": 64.737,
    "s": 57.576,
    "l": 12.941
  },
  "oklch": {
    "l": 0.31288,
    "c": 0.05695,
    "h": 113.5
  },
  "luminance": 0.03141
}

Semantic roles & 50–950 ramp

primary
#31340E
secondary
#342F6F
accent
#47E153
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070602
muted
#7A7A78

Preview Lab

Preview with #31340E

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

Preview Lab → · Contrast checker → · Palette generator →

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