#313408#313408

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

Color values

HEX#313408
RGBrgb(49, 52, 8)
HSLhsl(64, 73%, 12%)
HSVhsv(64, 85%, 20%)
CMYKcmyk(5.8%, 0%, 84.6%, 79.6%)
CIE-LABlab(20.54, -8.06, 25.42)
CIE-LCHlch(20.54, 26.66, 107.59°)
OKLaboklab(31.23% -0.0247 0.0573)
OKLCHoklch(31.23% 0.062 113.4)
XYZxyz(2.5385, 3.1265, 0.6994)
Luminance0.0313 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313408 #0B0834
analogous
#342108 #313408 #1B3408
triadic
#313408 #083134 #340831
tetradic
#313408 #083421 #0B0834 #34081B
square
#313408 #083421 #0B0834 #34081B
split-complementary
#313408 #081B34 #210834
monochromatic
#191B04 #191B04 #313408 #636910 #959E18

Accessibility & contrast

On white

12.92
#313408 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#313408 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313408
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313408#FFFFFF#000000##FFFFFF
##3134081.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393103
Deuteranopia (green-blind)
#39320B
Tritanopia (blue-blind)
#35302B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #313408;
/* rgb */ color: rgb(49, 52, 8);
/* oklch */ color: oklch(31.2% 0.062 113.4);
Tailwind
colors: {
  custom: {
    50: '#6b6b4b',
    500: '#313408',
    950: '#000000',
  },
}
SCSS
$custom: #313408;
$custom-light: #6b6b4b;
$custom-dark: #000000;
JSON
{
  "hex": "#313408",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 8
  },
  "hsl": {
    "h": 64.091,
    "s": 73.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.31227,
    "c": 0.06237,
    "h": 113.4
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#313408
secondary
#2A2573
accent
#38F044
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #313408

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

Preview Lab → · Contrast checker → · Palette generator →

#313408 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva