#310C0B#310C0B

#310C0B is a very dark, moderate red. Relative luminance 0.009; OKLCH L 21.8% C 0.061 H 25.0°. Best body text is #FFFFFF at 17.68:1 contrast (WCAG AA passes).

Color values

HEX#310C0B
RGBrgb(49, 12, 11)
HSLhsl(2, 63%, 12%)
HSVhsv(2, 78%, 19%)
CMYKcmyk(0%, 75.5%, 77.6%, 80.8%)
CIE-LABlab(8.48, 18.72, 8.60)
CIE-LCHlch(8.48, 20.60, 24.68°)
OKLaboklab(21.83% 0.0549 0.0256)
OKLCHoklch(21.83% 0.061 25)
XYZxyz(1.4586, 0.9403, 0.4212)
Luminance0.0094 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C0B #0B3031
analogous
#310B1D #310C0B #311F0B
triadic
#310C0B #0B310C #0C0B31
tetradic
#310C0B #1D310B #0B3031 #1F0B31
square
#310C0B #1D310B #0B3031 #1F0B31
split-complementary
#310C0B #0B311F #0B1D31
monochromatic
#190606 #190606 #310C0B #631816 #952421

Accessibility & contrast

On white

17.68
#310C0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C0B
17.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C0B#FFFFFF#000000##FFFFFF
##310C0B1.0017.681.1917.68
#FFFFFF17.681.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16130B
Deuteranopia (green-blind)
#1F1B0A
Tritanopia (blue-blind)
#37050C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310c0b;
/* rgb */ color: rgb(49, 12, 11);
/* oklch */ color: oklch(21.8% 0.061 25.0);
Tailwind
colors: {
  custom: {
    50: '#6c4d4b',
    500: '#310c0b',
    950: '#000000',
  },
}
SCSS
$custom: #310c0b;
$custom-light: #6c4d4b;
$custom-dark: #000000;
JSON
{
  "hex": "#310c0b",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 11
  },
  "hsl": {
    "h": 1.579,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21826,
    "c": 0.0606,
    "h": 25
  },
  "luminance": 0.0094
}

Semantic roles & 50–950 ramp

primary
#310C0B
secondary
#2A6C6E
accent
#E2E641
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310C0B

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

Preview Lab → · Contrast checker → · Palette generator →

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