#313104#313104

#313104 is a dark, moderate yellow. Relative luminance 0.029; OKLCH L 30.4% C 0.062 H 109.6°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#313104
RGBrgb(49, 49, 4)
HSLhsl(60, 85%, 10%)
HSVhsv(60, 92%, 19%)
CMYKcmyk(0%, 0%, 91.8%, 80.8%)
CIE-LABlab(19.47, -6.46, 25.83)
CIE-LCHlch(19.47, 26.62, 104.04°)
OKLaboklab(30.35% -0.0208 0.0586)
OKLCHoklch(30.35% 0.062 109.6)
XYZxyz(2.3869, 2.8584, 0.5408)
Luminance0.0286 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313104 #040431
analogous
#311A04 #313104 #1A3104
triadic
#313104 #043131 #310431
tetradic
#313104 #04311A #040431 #31041A
square
#313104 #04311A #040431 #31041A
split-complementary
#313104 #041A31 #1A0431
monochromatic
#1C1C02 #1C1C02 #313104 #6A6A09 #A2A20D

Accessibility & contrast

On white

13.36
#313104 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#313104 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313104
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313104#FFFFFF#000000##FFFFFF
##3131041.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#362E00
Deuteranopia (green-blind)
#363007
Tritanopia (blue-blind)
#352D29
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #313104;
/* rgb */ color: rgb(49, 49, 4);
/* oklch */ color: oklch(30.4% 0.062 109.6);
Tailwind
colors: {
  custom: {
    50: '#6b6849',
    500: '#313104',
    950: '#000000',
  },
}
SCSS
$custom: #313104;
$custom-light: #6b6849;
$custom-dark: #000000;
JSON
{
  "hex": "#313104",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 4
  },
  "hsl": {
    "h": 60,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.30355,
    "c": 0.06217,
    "h": 109.6
  },
  "luminance": 0.02858
}

Semantic roles & 50–950 ramp

primary
#313104
secondary
#1D1D73
accent
#2DFB2D
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #313104

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

Preview Lab → · Contrast checker → · Palette generator →

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