#310C04#310C04

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

Color values

HEX#310C04
RGBrgb(49, 12, 4)
HSLhsl(11, 85%, 10%)
HSVhsv(11, 92%, 19%)
CMYKcmyk(0%, 75.5%, 91.8%, 80.8%)
CIE-LABlab(8.35, 18.20, 11.27)
CIE-LCHlch(8.35, 21.40, 31.77°)
OKLaboklab(21.68% 0.0512 0.0364)
OKLCHoklch(21.68% 0.063 35.4)
XYZxyz(1.4202, 0.9249, 0.2186)
Luminance0.0092 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C04 #042931
analogous
#310412 #310C04 #312204
triadic
#310C04 #04310C #0C0431
tetradic
#310C04 #123104 #042931 #220431
square
#310C04 #123104 #042931 #220431
split-complementary
#310C04 #043122 #041231
monochromatic
#1C0702 #1C0702 #310C04 #6A1A09 #A2280D

Accessibility & contrast

On white

17.72
#310C04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C04
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C04#FFFFFF#000000##FFFFFF
##310C041.0017.721.1917.72
#FFFFFF17.721.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171303
Deuteranopia (green-blind)
#201B03
Tritanopia (blue-blind)
#37040A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310c04;
/* rgb */ color: rgb(49, 12, 4);
/* oklch */ color: oklch(21.7% 0.063 35.4);
Tailwind
colors: {
  custom: {
    50: '#6c4d48',
    500: '#310c04',
    950: '#000000',
  },
}
SCSS
$custom: #310c04;
$custom-light: #6c4d48;
$custom-dark: #000000;
JSON
{
  "hex": "#310c04",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 4
  },
  "hsl": {
    "h": 10.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.21681,
    "c": 0.06277,
    "h": 35.4
  },
  "luminance": 0.00925
}

Semantic roles & 50–950 ramp

primary
#310C04
secondary
#1D6473
accent
#D6FB2D
background
#F6F4F4
surface
#ECE7E6
border
#C7C3C2
text
#070100
muted
#7A7777

Preview Lab

Preview with #310C04

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

Preview Lab → · Contrast checker → · Palette generator →

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