#313404#313404

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

Color values

HEX#313404
RGBrgb(49, 52, 4)
HSLhsl(64, 86%, 11%)
HSVhsv(64, 92%, 20%)
CMYKcmyk(5.8%, 0%, 92.3%, 79.6%)
CIE-LABlab(20.51, -8.34, 27.01)
CIE-LCHlch(20.51, 28.27, 107.17°)
OKLaboklab(31.19% -0.0261 0.0605)
OKLCHoklch(31.19% 0.066 113.3)
XYZxyz(2.5166, 3.1178, 0.5841)
Luminance0.0312 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313404 #070434
analogous
#341F04 #313404 #193404
triadic
#313404 #043134 #340431
tetradic
#313404 #04341F #070434 #340419
square
#313404 #04341F #070434 #340419
split-complementary
#313404 #041934 #1F0434
monochromatic
#1B1C02 #1B1C02 #313404 #676D08 #9CA60D

Accessibility & contrast

On white

12.93
#313404 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#313404 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313404
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313404#FFFFFF#000000##FFFFFF
##3134041.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313404;
/* rgb */ color: rgb(49, 52, 4);
/* oklch */ color: oklch(31.2% 0.066 113.3);
Tailwind
colors: {
  custom: {
    50: '#6b6b49',
    500: '#313404',
    950: '#000000',
  },
}
SCSS
$custom: #313404;
$custom-light: #6b6b49;
$custom-dark: #000000;
JSON
{
  "hex": "#313404",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 4
  },
  "hsl": {
    "h": 63.75,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.31188,
    "c": 0.06591,
    "h": 113.3
  },
  "luminance": 0.03118
}

Semantic roles & 50–950 ramp

primary
#313404
secondary
#231E76
accent
#2CFC39
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #313404

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

Preview Lab → · Contrast checker → · Palette generator →

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