#310504#310504

#310504 is a very dark, moderate red. Relative luminance 0.008; OKLCH L 20.6% C 0.072 H 27.7°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#310504
RGBrgb(49, 5, 4)
HSLhsl(1, 85%, 10%)
HSVhsv(1, 92%, 19%)
CMYKcmyk(0%, 89.8%, 91.8%, 80.8%)
CIE-LABlab(6.96, 21.91, 9.24)
CIE-LCHlch(6.96, 23.78, 22.87°)
OKLaboklab(20.6% 0.0634 0.0332)
OKLCHoklch(20.6% 0.072 27.7)
XYZxyz(1.3430, 0.7705, 0.1928)
Luminance0.0077 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310504 #043031
analogous
#310419 #310504 #311B04
triadic
#310504 #043105 #050431
tetradic
#310504 #193104 #043031 #1B0431
square
#310504 #193104 #043031 #1B0431
split-complementary
#310504 #04311B #041931
monochromatic
#1C0302 #1C0302 #310504 #6A0B09 #A2110D

Accessibility & contrast

On white

18.20
#310504 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310504
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310504#FFFFFF#000000##FFFFFF
##3105041.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310504;
/* rgb */ color: rgb(49, 5, 4);
/* oklch */ color: oklch(20.6% 0.072 27.7);
Tailwind
colors: {
  custom: {
    50: '#6d4948',
    500: '#310504',
    950: '#000000',
  },
}
SCSS
$custom: #310504;
$custom-light: #6d4948;
$custom-dark: #000000;
JSON
{
  "hex": "#310504",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 4
  },
  "hsl": {
    "h": 1.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20604,
    "c": 0.07156,
    "h": 27.7
  },
  "luminance": 0.0077
}

Semantic roles & 50–950 ramp

primary
#310504
secondary
#1D7273
accent
#F7FB2D
background
#F6F4F4
surface
#ECE7E6
border
#C7C3C2
text
#070100
muted
#7A7777

Preview Lab

Preview with #310504

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

Preview Lab → · Contrast checker → · Palette generator →

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