#310404#310404

#310404 is a very dark, moderate red. Relative luminance 0.007; OKLCH L 20.4% C 0.073 H 26.6°. Best body text is #FFFFFF at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#310404
RGBrgb(49, 4, 4)
HSLhsl(0, 85%, 10%)
HSVhsv(0, 92%, 19%)
CMYKcmyk(0%, 91.8%, 91.8%, 80.8%)
CIE-LABlab(6.76, 22.43, 8.96)
CIE-LCHlch(6.76, 24.15, 21.76°)
OKLaboklab(20.44% 0.0653 0.0327)
OKLCHoklch(20.44% 0.073 26.6)
XYZxyz(1.3321, 0.7488, 0.1892)
Luminance0.0075 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310404 #043131
analogous
#31041A #310404 #311A04
triadic
#310404 #043104 #040431
tetradic
#310404 #1A3104 #043131 #1A0431
square
#310404 #1A3104 #043131 #1A0431
split-complementary
#310404 #04311A #041A31
monochromatic
#1C0202 #1C0202 #310404 #6A0909 #A20D0D

Accessibility & contrast

On white

18.26
#310404 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#310404 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310404
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310404#FFFFFF#000000##FFFFFF
##3104041.0018.261.1518.26
#FFFFFF18.261.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#110F04
Deuteranopia (green-blind)
#1D1903
Tritanopia (blue-blind)
#370004
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #310404;
/* rgb */ color: rgb(49, 4, 4);
/* oklch */ color: oklch(20.4% 0.073 26.6);
Tailwind
colors: {
  custom: {
    50: '#6d4848',
    500: '#310404',
    950: '#000000',
  },
}
SCSS
$custom: #310404;
$custom-light: #6d4848;
$custom-dark: #000000;
JSON
{
  "hex": "#310404",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 4
  },
  "hsl": {
    "h": 0,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20442,
    "c": 0.07304,
    "h": 26.6
  },
  "luminance": 0.00749
}

Semantic roles & 50–950 ramp

primary
#310404
secondary
#1D7373
accent
#FBFB2D
background
#F6F4F4
surface
#ECE6E6
border
#C7C2C2
text
#070100
muted
#7A7777

Preview Lab

Preview with #310404

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

Preview Lab → · Contrast checker → · Palette generator →

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