#310208#310208

#310208 is a very dark, moderate red. Relative luminance 0.007; OKLCH L 20.2% C 0.076 H 18.8°. Best body text is #FFFFFF at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#310208
RGBrgb(49, 2, 8)
HSLhsl(352, 92%, 10%)
HSVhsv(352, 96%, 19%)
CMYKcmyk(0%, 95.9%, 83.7%, 80.8%)
CIE-LABlab(6.45, 23.79, 6.87)
CIE-LCHlch(6.45, 24.76, 16.10°)
OKLaboklab(20.21% 0.0718 0.0245)
OKLCHoklch(20.21% 0.076 18.8)
XYZxyz(1.3323, 0.7141, 0.2974)
Luminance0.0071 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310208 #02312B
analogous
#310220 #310208 #311302
triadic
#310208 #083102 #020831
tetradic
#310208 #203102 #02312B #130231
square
#310208 #203102 #02312B #130231
split-complementary
#310208 #023113 #022031
monochromatic
#1D0105 #1D0105 #310208 #6C0412 #A7071B

Accessibility & contrast

On white

18.38
#310208 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310208
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310208#FFFFFF#000000##FFFFFF
##3102081.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310208;
/* rgb */ color: rgb(49, 2, 8);
/* oklch */ color: oklch(20.2% 0.076 18.8);
Tailwind
colors: {
  custom: {
    50: '#6d474a',
    500: '#310208',
    950: '#000000',
  },
}
SCSS
$custom: #310208;
$custom-light: #6d474a;
$custom-dark: #000000;
JSON
{
  "hex": "#310208",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 8
  },
  "hsl": {
    "h": 352.34,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20208,
    "c": 0.07581,
    "h": 18.8
  },
  "luminance": 0.00714
}

Semantic roles & 50–950 ramp

primary
#310208
secondary
#19756A
accent
#FFE429
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070001
muted
#7A7777

Preview Lab

Preview with #310208

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

Preview Lab → · Contrast checker → · Palette generator →

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