#310A12#310A12

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

Color values

HEX#310A12
RGBrgb(49, 10, 18)
HSLhsl(348, 66%, 12%)
HSVhsv(348, 80%, 19%)
CMYKcmyk(0%, 79.6%, 63.3%, 80.8%)
CIE-LABlab(8.25, 20.45, 4.64)
CIE-LCHlch(8.25, 20.97, 12.78°)
OKLaboklab(21.71% 0.0618 0.0131)
OKLCHoklch(21.71% 0.063 11.9)
XYZxyz(1.4845, 0.9139, 0.6704)
Luminance0.0091 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A12 #0A3129
analogous
#310A26 #310A12 #31160A
triadic
#310A12 #12310A #0A1231
tetradic
#310A12 #26310A #0A3129 #160A31
square
#310A12 #26310A #0A3129 #160A31
split-complementary
#310A12 #0A3116 #0A2631
monochromatic
#190509 #190509 #310A12 #641425 #971F37

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##310A12#FFFFFF#000000##FFFFFF
##310A121.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)
#131312
Deuteranopia (green-blind)
#1D1B11
Tritanopia (blue-blind)
#36040D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310a12;
/* rgb */ color: rgb(49, 10, 18);
/* oklch */ color: oklch(21.7% 0.063 11.9);
Tailwind
colors: {
  custom: {
    50: '#6c4c4f',
    500: '#310a12',
    950: '#000000',
  },
}
SCSS
$custom: #310a12;
$custom-light: #6c4c4f;
$custom-dark: #000000;
JSON
{
  "hex": "#310a12",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 18
  },
  "hsl": {
    "h": 347.692,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21708,
    "c": 0.0632,
    "h": 11.9
  },
  "luminance": 0.00914
}

Semantic roles & 50–950 ramp

primary
#310A12
secondary
#296E60
accent
#E9C63F
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310A12

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

Preview Lab → · Contrast checker → · Palette generator →

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