#310A0C#310A0C

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

Color values

HEX#310A0C
RGBrgb(49, 10, 12)
HSLhsl(357, 66%, 12%)
HSVhsv(357, 80%, 19%)
CMYKcmyk(0%, 79.6%, 75.5%, 80.8%)
CIE-LABlab(8.10, 19.89, 7.60)
CIE-LCHlch(8.10, 21.29, 20.92°)
OKLaboklab(21.55% 0.0588 0.023)
OKLCHoklch(21.55% 0.063 21.3)
XYZxyz(1.4417, 0.8968, 0.4449)
Luminance0.0090 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A0C #0A312F
analogous
#310A20 #310A0C #311C0A
triadic
#310A0C #0C310A #0A0C31
tetradic
#310A0C #20310A #0A312F #1C0A31
square
#310A0C #20310A #0A312F #1C0A31
split-complementary
#310A0C #0A311C #0A2031
monochromatic
#190506 #190506 #310A0C #641418 #971F25

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##310A0C#FFFFFF#000000##FFFFFF
##310A0C1.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)
#14120C
Deuteranopia (green-blind)
#1E1B0B
Tritanopia (blue-blind)
#37030B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310a0c;
/* rgb */ color: rgb(49, 10, 12);
/* oklch */ color: oklch(21.5% 0.063 21.3);
Tailwind
colors: {
  custom: {
    50: '#6c4c4c',
    500: '#310a0c',
    950: '#000000',
  },
}
SCSS
$custom: #310a0c;
$custom-light: #6c4c4c;
$custom-dark: #000000;
JSON
{
  "hex": "#310a0c",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 12
  },
  "hsl": {
    "h": 356.923,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21545,
    "c": 0.06316,
    "h": 21.3
  },
  "luminance": 0.00897
}

Semantic roles & 50–950 ramp

primary
#310A0C
secondary
#296E6B
accent
#E9E03F
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310A0C

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

Preview Lab → · Contrast checker → · Palette generator →

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