#310A0B#310A0B

#310A0B is a very dark, moderate red. Relative luminance 0.009; OKLCH L 21.5% C 0.063 H 22.8°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#310A0B
RGBrgb(49, 10, 11)
HSLhsl(358, 66%, 12%)
HSVhsv(358, 80%, 19%)
CMYKcmyk(0%, 79.6%, 77.6%, 80.8%)
CIE-LABlab(8.08, 19.81, 8.01)
CIE-LCHlch(8.08, 21.37, 22.02°)
OKLaboklab(21.52% 0.0584 0.0245)
OKLCHoklch(21.52% 0.063 22.8)
XYZxyz(1.4357, 0.8944, 0.4136)
Luminance0.0089 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A0B #0A3130
analogous
#310A1F #310A0B #311D0A
triadic
#310A0B #0B310A #0A0B31
tetradic
#310A0B #1F310A #0A3130 #1D0A31
square
#310A0B #1F310A #0A3130 #1D0A31
split-complementary
#310A0B #0A311D #0A1F31
monochromatic
#190506 #190506 #310A0B #641416 #971F22

Accessibility & contrast

On white

17.81
#310A0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A0B
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A0B#FFFFFF#000000##FFFFFF
##310A0B1.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14120B
Deuteranopia (green-blind)
#1E1B0A
Tritanopia (blue-blind)
#37030B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310a0b;
/* rgb */ color: rgb(49, 10, 11);
/* oklch */ color: oklch(21.5% 0.063 22.8);
Tailwind
colors: {
  custom: {
    50: '#6c4c4b',
    500: '#310a0b',
    950: '#000000',
  },
}
SCSS
$custom: #310a0b;
$custom-light: #6c4c4b;
$custom-dark: #000000;
JSON
{
  "hex": "#310a0b",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 11
  },
  "hsl": {
    "h": 358.462,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21522,
    "c": 0.06328,
    "h": 22.8
  },
  "luminance": 0.00894
}

Semantic roles & 50–950 ramp

primary
#310A0B
secondary
#296E6D
accent
#E9E53F
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310A0B

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

Preview Lab → · Contrast checker → · Palette generator →

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