#313304#313304

#313304 is a dark, moderate yellow. Relative luminance 0.030; OKLCH L 30.9% C 0.065 H 112.1°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#313304
RGBrgb(49, 51, 4)
HSLhsl(63, 85%, 11%)
HSVhsv(63, 92%, 20%)
CMYKcmyk(3.9%, 0%, 92.2%, 80%)
CIE-LABlab(20.16, -7.72, 26.62)
CIE-LCHlch(20.16, 27.71, 106.17°)
OKLaboklab(30.91% -0.0243 0.0599)
OKLCHoklch(30.91% 0.065 112.1)
XYZxyz(2.4725, 3.0294, 0.5693)
Luminance0.0303 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313304 #060433
analogous
#331D04 #313304 #193304
triadic
#313304 #043133 #330431
tetradic
#313304 #04331D #060433 #330419
square
#313304 #04331D #060433 #330419
split-complementary
#313304 #041933 #1D0433
monochromatic
#1B1C02 #1B1C02 #313304 #686C08 #9EA40D

Accessibility & contrast

On white

13.08
#313304 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#313304 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313304
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313304#FFFFFF#000000##FFFFFF
##3133041.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383000
Deuteranopia (green-blind)
#383107
Tritanopia (blue-blind)
#352F2A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #313304;
/* rgb */ color: rgb(49, 51, 4);
/* oklch */ color: oklch(30.9% 0.065 112.1);
Tailwind
colors: {
  custom: {
    50: '#6b6a49',
    500: '#313304',
    950: '#000000',
  },
}
SCSS
$custom: #313304;
$custom-light: #6b6a49;
$custom-dark: #000000;
JSON
{
  "hex": "#313304",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 4
  },
  "hsl": {
    "h": 62.553,
    "s": 85.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.30909,
    "c": 0.06464,
    "h": 112.1
  },
  "luminance": 0.03029
}

Semantic roles & 50–950 ramp

primary
#313304
secondary
#211D75
accent
#2CFC35
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #313304

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

Preview Lab → · Contrast checker → · Palette generator →

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