#310304#310304

#310304 is a very dark, moderate red. Relative luminance 0.007; OKLCH L 20.3% C 0.075 H 25.6°. Best body text is #FFFFFF at 18.33:1 contrast (WCAG AA passes).

Color values

HEX#310304
RGBrgb(49, 3, 4)
HSLhsl(359, 88%, 10%)
HSVhsv(359, 94%, 19%)
CMYKcmyk(0%, 93.9%, 91.8%, 80.8%)
CIE-LABlab(6.57, 22.95, 8.67)
CIE-LCHlch(6.57, 24.53, 20.69°)
OKLaboklab(20.28% 0.0673 0.0322)
OKLCHoklch(20.28% 0.075 25.6)
XYZxyz(1.3213, 0.7271, 0.1856)
Luminance0.0073 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310304 #033130
analogous
#31031B #310304 #311903
triadic
#310304 #043103 #030431
tetradic
#310304 #1B3103 #033130 #190331
square
#310304 #1B3103 #033130 #190331
split-complementary
#310304 #033119 #031B31
monochromatic
#1D0202 #1D0202 #310304 #6B0709 #A40A0D

Accessibility & contrast

On white

18.33
#310304 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310304
18.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310304#FFFFFF#000000##FFFFFF
##3103041.0018.331.1518.33
#FFFFFF18.331.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#100E04
Deuteranopia (green-blind)
#1C1803
Tritanopia (blue-blind)
#370004
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #310304;
/* rgb */ color: rgb(49, 3, 4);
/* oklch */ color: oklch(20.3% 0.075 25.6);
Tailwind
colors: {
  custom: {
    50: '#6d4848',
    500: '#310304',
    950: '#000000',
  },
}
SCSS
$custom: #310304;
$custom-light: #6d4848;
$custom-dark: #000000;
JSON
{
  "hex": "#310304",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 4
  },
  "hsl": {
    "h": 358.696,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20278,
    "c": 0.0746,
    "h": 25.6
  },
  "luminance": 0.00727
}

Semantic roles & 50–950 ramp

primary
#310304
secondary
#1B7472
accent
#FFFA29
background
#F6F4F4
surface
#ECE6E6
border
#C7C2C2
text
#070000
muted
#7A7777

Preview Lab

Preview with #310304

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

Preview Lab → · Contrast checker → · Palette generator →

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