#310508#310508

#310508 is a very dark, moderate red. Relative luminance 0.008; OKLCH L 20.7% C 0.071 H 21.8°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#310508
RGBrgb(49, 5, 8)
HSLhsl(356, 81%, 11%)
HSVhsv(356, 90%, 19%)
CMYKcmyk(0%, 89.8%, 83.7%, 80.8%)
CIE-LABlab(7.04, 22.22, 7.73)
CIE-LCHlch(7.04, 23.53, 19.18°)
OKLaboklab(20.7% 0.0658 0.0263)
OKLCHoklch(20.7% 0.071 21.8)
XYZxyz(1.3649, 0.7793, 0.3082)
Luminance0.0078 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310508 #05312E
analogous
#31051E #310508 #311805
triadic
#310508 #083105 #050831
tetradic
#310508 #1E3105 #05312E #180531
square
#310508 #1E3105 #05312E #180531
split-complementary
#310508 #053118 #051E31
monochromatic
#1C0305 #1C0305 #310508 #690B11 #A0101A

Accessibility & contrast

On white

18.17
#310508 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#310508 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310508
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310508#FFFFFF#000000##FFFFFF
##3105081.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310508;
/* rgb */ color: rgb(49, 5, 8);
/* oklch */ color: oklch(20.7% 0.071 21.8);
Tailwind
colors: {
  custom: {
    50: '#6d494a',
    500: '#310508',
    950: '#000000',
  },
}
SCSS
$custom: #310508;
$custom-light: #6d494a;
$custom-dark: #000000;
JSON
{
  "hex": "#310508",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 8
  },
  "hsl": {
    "h": 355.909,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.20696,
    "c": 0.07082,
    "h": 21.8
  },
  "luminance": 0.00779
}

Semantic roles & 50–950 ramp

primary
#310508
secondary
#1F726D
accent
#F8EA30
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310508

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

Preview Lab → · Contrast checker → · Palette generator →

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