#310C0F#310C0F

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

Color values

HEX#310C0F
RGBrgb(49, 12, 15)
HSLhsl(355, 61%, 12%)
HSVhsv(355, 76%, 19%)
CMYKcmyk(0%, 75.5%, 69.4%, 80.8%)
CIE-LABlab(8.57, 19.07, 6.81)
CIE-LCHlch(8.57, 20.25, 19.66°)
OKLaboklab(21.92% 0.0569 0.0194)
OKLCHoklch(21.92% 0.06 18.8)
XYZxyz(1.4845, 0.9506, 0.5572)
Luminance0.0095 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C0F #0C312E
analogous
#310C22 #310C0F #311C0C
triadic
#310C0F #0F310C #0C0F31
tetradic
#310C0F #22310C #0C312E #1C0C31
square
#310C0F #22310C #0C312E #1C0C31
split-complementary
#310C0F #0C311C #0C2231
monochromatic
#190608 #190608 #310C0F #62181E #93242D

Accessibility & contrast

On white

17.65
#310C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C0F
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C0F#FFFFFF#000000##FFFFFF
##310C0F1.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15140F
Deuteranopia (green-blind)
#1F1C0E
Tritanopia (blue-blind)
#36060D
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310c0f;
/* rgb */ color: rgb(49, 12, 15);
/* oklch */ color: oklch(21.9% 0.060 18.8);
Tailwind
colors: {
  custom: {
    50: '#6c4d4e',
    500: '#310c0f',
    950: '#000000',
  },
}
SCSS
$custom: #310c0f;
$custom-light: #6c4d4e;
$custom-dark: #000000;
JSON
{
  "hex": "#310c0f",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 15
  },
  "hsl": {
    "h": 355.135,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21921,
    "c": 0.06012,
    "h": 18.8
  },
  "luminance": 0.0095
}

Semantic roles & 50–950 ramp

primary
#310C0F
secondary
#2C6D68
accent
#E4D744
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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