#310108#310108

#310108 is a very dark, moderate red. Relative luminance 0.007; OKLCH L 20.0% C 0.078 H 17.9°. Best body text is #FFFFFF at 18.45:1 contrast (WCAG AA passes).

Color values

HEX#310108
RGBrgb(49, 1, 8)
HSLhsl(351, 96%, 10%)
HSVhsv(351, 98%, 19%)
CMYKcmyk(0%, 98%, 83.7%, 80.8%)
CIE-LABlab(6.25, 24.31, 6.58)
CIE-LCHlch(6.25, 25.18, 15.15°)
OKLaboklab(20.04% 0.0739 0.0239)
OKLCHoklch(20.04% 0.078 17.9)
XYZxyz(1.3215, 0.6924, 0.2938)
Luminance0.0069 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310108 #01312A
analogous
#310120 #310108 #311201
triadic
#310108 #083101 #010831
tetradic
#310108 #203101 #01312A #120131
square
#310108 #203101 #01312A #120131
split-complementary
#310108 #013112 #012031
monochromatic
#1E0105 #1E0105 #310108 #6D0212 #A9031C

Accessibility & contrast

On white

18.45
#310108 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#310108 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310108
18.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310108#FFFFFF#000000##FFFFFF
##3101081.0018.451.1418.45
#FFFFFF18.451.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E0D08
Deuteranopia (green-blind)
#1B1807
Tritanopia (blue-blind)
#370004
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #310108;
/* rgb */ color: rgb(49, 1, 8);
/* oklch */ color: oklch(20.0% 0.078 17.9);
Tailwind
colors: {
  custom: {
    50: '#6d474a',
    500: '#310108',
    950: '#000000',
  },
}
SCSS
$custom: #310108;
$custom-light: #6d474a;
$custom-dark: #000000;
JSON
{
  "hex": "#310108",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 8
  },
  "hsl": {
    "h": 351.25,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20039,
    "c": 0.07763,
    "h": 17.9
  },
  "luminance": 0.00692
}

Semantic roles & 50–950 ramp

primary
#310108
secondary
#177769
accent
#FFE029
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070001
muted
#7A7777

Preview Lab

Preview with #310108

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

Preview Lab → · Contrast checker → · Palette generator →

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