#310C12#310C12

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

Color values

HEX#310C12
RGBrgb(49, 12, 18)
HSLhsl(350, 61%, 12%)
HSVhsv(350, 76%, 19%)
CMYKcmyk(0%, 75.5%, 63.3%, 80.8%)
CIE-LABlab(8.65, 19.36, 5.22)
CIE-LCHlch(8.65, 20.05, 15.09°)
OKLaboklab(22.01% 0.0584 0.0144)
OKLCHoklch(22.01% 0.06 13.8)
XYZxyz(1.5074, 0.9598, 0.6780)
Luminance0.0096 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C12 #0C312B
analogous
#310C25 #310C12 #31190C
triadic
#310C12 #12310C #0C1231
tetradic
#310C12 #25310C #0C312B #190C31
square
#310C12 #25310C #0C312B #190C31
split-complementary
#310C12 #0C3119 #0C2531
monochromatic
#190609 #190609 #310C12 #621824 #932436

Accessibility & contrast

On white

17.62
#310C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C12
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C12#FFFFFF#000000##FFFFFF
##310C121.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151412
Deuteranopia (green-blind)
#1E1C11
Tritanopia (blue-blind)
#36060E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310c12;
/* rgb */ color: rgb(49, 12, 18);
/* oklch */ color: oklch(22.0% 0.060 13.8);
Tailwind
colors: {
  custom: {
    50: '#6c4d4f',
    500: '#310c12',
    950: '#000000',
  },
}
SCSS
$custom: #310c12;
$custom-light: #6c4d4f;
$custom-dark: #000000;
JSON
{
  "hex": "#310c12",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 18
  },
  "hsl": {
    "h": 350.27,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.22006,
    "c": 0.06015,
    "h": 13.8
  },
  "luminance": 0.0096
}

Semantic roles & 50–950 ramp

primary
#310C12
secondary
#2C6D62
accent
#E4CA44
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310C12

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

Preview Lab → · Contrast checker → · Palette generator →

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