#310C0C#310C0C

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

Color values

HEX#310C0C
RGBrgb(49, 12, 12)
HSLhsl(0, 61%, 12%)
HSVhsv(0, 76%, 19%)
CMYKcmyk(0%, 75.5%, 75.5%, 80.8%)
CIE-LABlab(8.50, 18.80, 8.19)
CIE-LCHlch(8.50, 20.50, 23.54°)
OKLaboklab(21.85% 0.0554 0.0241)
OKLCHoklch(21.85% 0.06 23.5)
XYZxyz(1.4646, 0.9427, 0.4526)
Luminance0.0094 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C0C #0C3131
analogous
#310C1F #310C0C #311F0C
triadic
#310C0C #0C310C #0C0C31
tetradic
#310C0C #1F310C #0C3131 #1F0C31
square
#310C0C #1F310C #0C3131 #1F0C31
split-complementary
#310C0C #0C311F #0C1F31
monochromatic
#190606 #190606 #310C0C #621818 #932424

Accessibility & contrast

On white

17.67
#310C0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C0C
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C0C#FFFFFF#000000##FFFFFF
##310C0C1.0017.671.1917.67
#FFFFFF17.671.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16140C
Deuteranopia (green-blind)
#1F1B0B
Tritanopia (blue-blind)
#37050C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310c0c;
/* rgb */ color: rgb(49, 12, 12);
/* oklch */ color: oklch(21.8% 0.060 23.5);
Tailwind
colors: {
  custom: {
    50: '#6c4d4c',
    500: '#310c0c',
    950: '#000000',
  },
}
SCSS
$custom: #310c0c;
$custom-light: #6c4d4c;
$custom-dark: #000000;
JSON
{
  "hex": "#310c0c",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 12
  },
  "hsl": {
    "h": 0,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21848,
    "c": 0.06043,
    "h": 23.5
  },
  "luminance": 0.00942
}

Semantic roles & 50–950 ramp

primary
#310C0C
secondary
#2C6D6D
accent
#E4E444
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310C0C

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

Preview Lab → · Contrast checker → · Palette generator →

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