#313403#313403

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

Color values

HEX#313403
RGBrgb(49, 52, 3)
HSLhsl(64, 89%, 11%)
HSVhsv(64, 94%, 20%)
CMYKcmyk(5.8%, 0%, 94.2%, 79.6%)
CIE-LABlab(20.50, -8.41, 27.41)
CIE-LCHlch(20.50, 28.67, 107.07°)
OKLaboklab(31.18% -0.0264 0.0614)
OKLCHoklch(31.18% 0.067 113.3)
XYZxyz(2.5111, 3.1156, 0.5552)
Luminance0.0312 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313403 #060334
analogous
#341E03 #313403 #183403
triadic
#313403 #033134 #340331
tetradic
#313403 #03341E #060334 #340318
square
#313403 #03341E #060334 #340318
split-complementary
#313403 #031834 #1E0334
monochromatic
#1B1D02 #1B1D02 #313403 #686E06 #9EA80A

Accessibility & contrast

On white

12.94
#313403 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313403
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313403#FFFFFF#000000##FFFFFF
##3134031.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313403;
/* rgb */ color: rgb(49, 52, 3);
/* oklch */ color: oklch(31.2% 0.067 113.3);
Tailwind
colors: {
  custom: {
    50: '#6b6b49',
    500: '#313403',
    950: '#000000',
  },
}
SCSS
$custom: #313403;
$custom-light: #6b6b49;
$custom-dark: #000000;
JSON
{
  "hex": "#313403",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 3
  },
  "hsl": {
    "h": 63.673,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.31179,
    "c": 0.06682,
    "h": 113.3
  },
  "luminance": 0.03116
}

Semantic roles & 50–950 ramp

primary
#313403
secondary
#211C77
accent
#29FF36
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #313403

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

Preview Lab → · Contrast checker → · Palette generator →

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