#31340A#31340A

#31340A is a dark, moderate yellow. Relative luminance 0.031; OKLCH L 31.2% C 0.061 H 113.4°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#31340A
RGBrgb(49, 52, 10)
HSLhsl(64, 68%, 12%)
HSVhsv(64, 81%, 20%)
CMYKcmyk(5.8%, 0%, 80.8%, 79.6%)
CIE-LABlab(20.56, -7.92, 24.62)
CIE-LCHlch(20.56, 25.86, 107.83°)
OKLaboklab(31.25% -0.0241 0.0557)
OKLCHoklch(31.25% 0.061 113.4)
XYZxyz(2.5495, 3.1309, 0.7571)
Luminance0.0313 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31340A #0D0A34
analogous
#34220A #31340A #1C340A
triadic
#31340A #0A3134 #340A31
tetradic
#31340A #0A3422 #0D0A34 #340A1C
square
#31340A #0A3422 #0D0A34 #340A1C
split-complementary
#31340A #0A1C34 #220A34
monochromatic
#181A05 #181A05 #31340A #616714 #929B1E

Accessibility & contrast

On white

12.91
#31340A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31340A
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31340A#FFFFFF#000000##FFFFFF
##31340A1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383105
Deuteranopia (green-blind)
#38320D
Tritanopia (blue-blind)
#35302C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #31340a;
/* rgb */ color: rgb(49, 52, 10);
/* oklch */ color: oklch(31.2% 0.061 113.4);
Tailwind
colors: {
  custom: {
    50: '#6b6b4c',
    500: '#31340a',
    950: '#000000',
  },
}
SCSS
$custom: #31340a;
$custom-light: #6b6b4c;
$custom-dark: #000000;
JSON
{
  "hex": "#31340a",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 10
  },
  "hsl": {
    "h": 64.286,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.31246,
    "c": 0.06065,
    "h": 113.4
  },
  "luminance": 0.03131
}

Semantic roles & 50–950 ramp

primary
#31340A
secondary
#2E2871
accent
#3DEB4A
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #31340A

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

Preview Lab → · Contrast checker → · Palette generator →

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