#310C0D#310C0D

#310C0D is a very dark, moderate red. Relative luminance 0.009; OKLCH L 21.9% C 0.060 H 22.0°. Best body text is #FFFFFF at 17.66:1 contrast (WCAG AA passes).

Color values

HEX#310C0D
RGBrgb(49, 12, 13)
HSLhsl(358, 61%, 12%)
HSVhsv(358, 76%, 19%)
CMYKcmyk(0%, 75.5%, 73.5%, 80.8%)
CIE-LABlab(8.53, 18.88, 7.75)
CIE-LCHlch(8.53, 20.41, 22.32°)
OKLaboklab(21.87% 0.0559 0.0226)
OKLCHoklch(21.87% 0.06 22)
XYZxyz(1.4709, 0.9452, 0.4857)
Luminance0.0095 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C0D #0C3130
analogous
#310C20 #310C0D #311E0C
triadic
#310C0D #0D310C #0C0D31
tetradic
#310C0D #20310C #0C3130 #1E0C31
square
#310C0D #20310C #0C3130 #1E0C31
split-complementary
#310C0D #0C311E #0C2031
monochromatic
#190607 #190607 #310C0D #62181A #932427

Accessibility & contrast

On white

17.66
#310C0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#310C0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C0D
17.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C0D#FFFFFF#000000##FFFFFF
##310C0D1.0017.661.1917.66
#FFFFFF17.661.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15140D
Deuteranopia (green-blind)
#1F1B0C
Tritanopia (blue-blind)
#37050D
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310c0d;
/* rgb */ color: rgb(49, 12, 13);
/* oklch */ color: oklch(21.9% 0.060 22.0);
Tailwind
colors: {
  custom: {
    50: '#6c4d4c',
    500: '#310c0d',
    950: '#000000',
  },
}
SCSS
$custom: #310c0d;
$custom-light: #6c4d4c;
$custom-dark: #000000;
JSON
{
  "hex": "#310c0d",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 13
  },
  "hsl": {
    "h": 358.378,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21871,
    "c": 0.06028,
    "h": 22
  },
  "luminance": 0.00945
}

Semantic roles & 50–950 ramp

primary
#310C0D
secondary
#2C6D6B
accent
#E4DF44
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310C0D

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

Preview Lab → · Contrast checker → · Palette generator →

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