#310408#310408

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

Color values

HEX#310408
RGBrgb(49, 4, 8)
HSLhsl(355, 85%, 10%)
HSVhsv(355, 92%, 19%)
CMYKcmyk(0%, 91.8%, 83.7%, 80.8%)
CIE-LABlab(6.84, 22.75, 7.44)
CIE-LCHlch(6.84, 23.93, 18.11°)
OKLaboklab(20.54% 0.0677 0.0257)
OKLCHoklch(20.54% 0.072 20.8)
XYZxyz(1.3540, 0.7575, 0.3046)
Luminance0.0076 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310408 #04312D
analogous
#31041E #310408 #311604
triadic
#310408 #083104 #040831
tetradic
#310408 #1E3104 #04312D #160431
square
#310408 #1E3104 #04312D #160431
split-complementary
#310408 #043116 #041E31
monochromatic
#1C0205 #1C0205 #310408 #6A0911 #A20D1A

Accessibility & contrast

On white

18.24
#310408 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310408
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310408#FFFFFF#000000##FFFFFF
##3104081.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#110F08
Deuteranopia (green-blind)
#1C1907
Tritanopia (blue-blind)
#370006
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #310408;
/* rgb */ color: rgb(49, 4, 8);
/* oklch */ color: oklch(20.5% 0.072 20.8);
Tailwind
colors: {
  custom: {
    50: '#6d484a',
    500: '#310408',
    950: '#000000',
  },
}
SCSS
$custom: #310408;
$custom-light: #6d484a;
$custom-dark: #000000;
JSON
{
  "hex": "#310408",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 8
  },
  "hsl": {
    "h": 354.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20536,
    "c": 0.07242,
    "h": 20.8
  },
  "luminance": 0.00757
}

Semantic roles & 50–950 ramp

primary
#310408
secondary
#1D736C
accent
#FBE92D
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310408

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

Preview Lab → · Contrast checker → · Palette generator →

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