#310604#310604

#310604 is a very dark, moderate red. Relative luminance 0.008; OKLCH L 20.8% C 0.070 H 28.7°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#310604
RGBrgb(49, 6, 4)
HSLhsl(3, 85%, 10%)
HSVhsv(3, 92%, 19%)
CMYKcmyk(0%, 87.8%, 91.8%, 80.8%)
CIE-LABlab(7.16, 21.39, 9.53)
CIE-LCHlch(7.16, 23.42, 24.01°)
OKLaboklab(20.76% 0.0615 0.0337)
OKLCHoklch(20.76% 0.07 28.7)
XYZxyz(1.3538, 0.7922, 0.1965)
Luminance0.0079 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310604 #042F31
analogous
#310418 #310604 #311C04
triadic
#310604 #043106 #060431
tetradic
#310604 #183104 #042F31 #1C0431
square
#310604 #183104 #042F31 #1C0431
split-complementary
#310604 #04311C #041831
monochromatic
#1C0302 #1C0302 #310604 #6A0D09 #A2140D

Accessibility & contrast

On white

18.13
#310604 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#310604 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310604
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310604#FFFFFF#000000##FFFFFF
##3106041.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131004
Deuteranopia (green-blind)
#1D1903
Tritanopia (blue-blind)
#370006
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310604;
/* rgb */ color: rgb(49, 6, 4);
/* oklch */ color: oklch(20.8% 0.070 28.7);
Tailwind
colors: {
  custom: {
    50: '#6d4948',
    500: '#310604',
    950: '#000000',
  },
}
SCSS
$custom: #310604;
$custom-light: #6d4948;
$custom-dark: #000000;
JSON
{
  "hex": "#310604",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 4
  },
  "hsl": {
    "h": 2.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20763,
    "c": 0.07014,
    "h": 28.7
  },
  "luminance": 0.00792
}

Semantic roles & 50–950 ramp

primary
#310604
secondary
#1D7073
accent
#F2FB2D
background
#F6F4F4
surface
#ECE7E6
border
#C7C3C2
text
#070100
muted
#7A7777

Preview Lab

Preview with #310604

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

Preview Lab → · Contrast checker → · Palette generator →

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