#310808#310808

#310808 is a very dark, moderate red. Relative luminance 0.008; OKLCH L 21.2% C 0.066 H 24.9°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#310808
RGBrgb(49, 8, 8)
HSLhsl(0, 72%, 11%)
HSVhsv(0, 84%, 19%)
CMYKcmyk(0%, 83.7%, 83.7%, 80.8%)
CIE-LABlab(7.63, 20.65, 8.59)
CIE-LCHlch(7.63, 22.36, 22.58°)
OKLaboklab(21.16% 0.0603 0.0279)
OKLCHoklch(21.16% 0.066 24.9)
XYZxyz(1.3974, 0.8444, 0.3191)
Luminance0.0084 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310808 #083131
analogous
#31081C #310808 #311C08
triadic
#310808 #083108 #080831
tetradic
#310808 #1C3108 #083131 #1C0831
square
#310808 #1C3108 #083131 #1C0831
split-complementary
#310808 #08311C #081C31
monochromatic
#1A0404 #1A0404 #310808 #661111 #9A1919

Accessibility & contrast

On white

17.97
#310808 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#310808 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310808
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310808#FFFFFF#000000##FFFFFF
##3108081.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131108
Deuteranopia (green-blind)
#1E1A07
Tritanopia (blue-blind)
#370108
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #310808;
/* rgb */ color: rgb(49, 8, 8);
/* oklch */ color: oklch(21.2% 0.066 24.9);
Tailwind
colors: {
  custom: {
    50: '#6d4a4a',
    500: '#310808',
    950: '#000000',
  },
}
SCSS
$custom: #310808;
$custom-light: #6d4a4a;
$custom-dark: #000000;
JSON
{
  "hex": "#310808",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 8
  },
  "hsl": {
    "h": 0,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.2116,
    "c": 0.06643,
    "h": 24.9
  },
  "luminance": 0.00844
}

Semantic roles & 50–950 ramp

primary
#310808
secondary
#257070
accent
#EFEF39
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310808

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

Preview Lab → · Contrast checker → · Palette generator →

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