#310B0B#310B0B

#310B0B is a very dark, moderate red. Relative luminance 0.009; OKLCH L 21.7% C 0.062 H 23.9°. Best body text is #FFFFFF at 17.75:1 contrast (WCAG AA passes).

Color values

HEX#310B0B
RGBrgb(49, 11, 11)
HSLhsl(0, 63%, 12%)
HSVhsv(0, 78%, 19%)
CMYKcmyk(0%, 77.6%, 77.6%, 80.8%)
CIE-LABlab(8.28, 19.27, 8.30)
CIE-LCHlch(8.28, 20.98, 23.31°)
OKLaboklab(21.67% 0.0567 0.0251)
OKLCHoklch(21.67% 0.062 23.9)
XYZxyz(1.4468, 0.9167, 0.4173)
Luminance0.0092 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B0B #0B3131
analogous
#310B1E #310B0B #311E0B
triadic
#310B0B #0B310B #0B0B31
tetradic
#310B0B #1E310B #0B3131 #1E0B31
square
#310B0B #1E310B #0B3131 #1E0B31
split-complementary
#310B0B #0B311E #0B1E31
monochromatic
#190606 #190606 #310B0B #631616 #952121

Accessibility & contrast

On white

17.75
#310B0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#310B0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310B0B
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B0B#FFFFFF#000000##FFFFFF
##310B0B1.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15130B
Deuteranopia (green-blind)
#1F1B0A
Tritanopia (blue-blind)
#37040B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310b0b;
/* rgb */ color: rgb(49, 11, 11);
/* oklch */ color: oklch(21.7% 0.062 23.9);
Tailwind
colors: {
  custom: {
    50: '#6c4c4b',
    500: '#310b0b',
    950: '#000000',
  },
}
SCSS
$custom: #310b0b;
$custom-light: #6c4c4b;
$custom-dark: #000000;
JSON
{
  "hex": "#310b0b",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 11
  },
  "hsl": {
    "h": 0,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.2167,
    "c": 0.06194,
    "h": 23.9
  },
  "luminance": 0.00916
}

Semantic roles & 50–950 ramp

primary
#310B0B
secondary
#2A6E6E
accent
#E6E641
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310B0B

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

Preview Lab → · Contrast checker → · Palette generator →

#310B0B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva