#310B0C#310B0C

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

Color values

HEX#310B0C
RGBrgb(49, 11, 12)
HSLhsl(358, 63%, 12%)
HSVhsv(358, 78%, 19%)
CMYKcmyk(0%, 77.6%, 75.5%, 80.8%)
CIE-LABlab(8.30, 19.35, 7.89)
CIE-LCHlch(8.30, 20.90, 22.18°)
OKLaboklab(21.69% 0.0572 0.0235)
OKLCHoklch(21.69% 0.062 22.4)
XYZxyz(1.4528, 0.9191, 0.4486)
Luminance0.0092 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B0C #0B3130
analogous
#310B1F #310B0C #311D0B
triadic
#310B0C #0C310B #0B0C31
tetradic
#310B0C #1F310B #0B3130 #1D0B31
square
#310B0C #1F310B #0B3130 #1D0B31
split-complementary
#310B0C #0B311D #0B1F31
monochromatic
#190606 #190606 #310B0C #631618 #952124

Accessibility & contrast

On white

17.74
#310B0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B0C
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B0C#FFFFFF#000000##FFFFFF
##310B0C1.0017.741.1817.74
#FFFFFF17.741.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15130C
Deuteranopia (green-blind)
#1E1B0B
Tritanopia (blue-blind)
#37040C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310b0c;
/* rgb */ color: rgb(49, 11, 12);
/* oklch */ color: oklch(21.7% 0.062 22.4);
Tailwind
colors: {
  custom: {
    50: '#6c4c4c',
    500: '#310b0c',
    950: '#000000',
  },
}
SCSS
$custom: #310b0c;
$custom-light: #6c4c4c;
$custom-dark: #000000;
JSON
{
  "hex": "#310b0c",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 12
  },
  "hsl": {
    "h": 358.421,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21693,
    "c": 0.06181,
    "h": 22.4
  },
  "luminance": 0.00919
}

Semantic roles & 50–950 ramp

primary
#310B0C
secondary
#2A6E6C
accent
#E6E241
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310B0C

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

Preview Lab → · Contrast checker → · Palette generator →

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