#310D12#310D12

#310D12 is a very dark, muted red. Relative luminance 0.010; OKLCH L 22.2% C 0.059 H 14.9°. Best body text is #FFFFFF at 17.55:1 contrast (WCAG AA passes).

Color values

HEX#310D12
RGBrgb(49, 13, 18)
HSLhsl(352, 58%, 12%)
HSVhsv(352, 73%, 19%)
CMYKcmyk(0%, 73.5%, 63.3%, 80.8%)
CIE-LABlab(8.86, 18.80, 5.52)
CIE-LCHlch(8.86, 19.59, 16.37°)
OKLaboklab(22.16% 0.0566 0.0151)
OKLCHoklch(22.16% 0.059 14.9)
XYZxyz(1.5199, 0.9847, 0.6822)
Luminance0.0098 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D12 #0D312C
analogous
#310D24 #310D12 #311A0D
triadic
#310D12 #12310D #0D1231
tetradic
#310D12 #24310D #0D312C #1A0D31
square
#310D12 #24310D #0D312C #1A0D31
split-complementary
#310D12 #0D311A #0D2431
monochromatic
#180609 #180609 #310D12 #611A24 #922736

Accessibility & contrast

On white

17.55
#310D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#310D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310D12
17.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D12#FFFFFF#000000##FFFFFF
##310D121.0017.551.2017.55
#FFFFFF17.551.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151512
Deuteranopia (green-blind)
#1F1C11
Tritanopia (blue-blind)
#36070F
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310d12;
/* rgb */ color: rgb(49, 13, 18);
/* oklch */ color: oklch(22.2% 0.059 14.9);
Tailwind
colors: {
  custom: {
    50: '#6c4d4f',
    500: '#310d12',
    950: '#000000',
  },
}
SCSS
$custom: #310d12;
$custom-light: #6c4d4f;
$custom-dark: #000000;
JSON
{
  "hex": "#310d12",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 18
  },
  "hsl": {
    "h": 351.667,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22164,
    "c": 0.05859,
    "h": 14.9
  },
  "luminance": 0.00984
}

Semantic roles & 50–950 ramp

primary
#310D12
secondary
#2E6C63
accent
#E1CC47
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310D12

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

Preview Lab → · Contrast checker → · Palette generator →

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