#310D04#310D04

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

Color values

HEX#310D04
RGBrgb(49, 13, 4)
HSLhsl(12, 85%, 10%)
HSVhsv(12, 92%, 19%)
CMYKcmyk(0%, 73.5%, 91.8%, 80.8%)
CIE-LABlab(8.57, 17.62, 11.58)
CIE-LCHlch(8.57, 21.09, 33.32°)
OKLaboklab(21.85% 0.0494 0.0369)
OKLCHoklch(21.85% 0.062 36.7)
XYZxyz(1.4326, 0.9498, 0.2227)
Luminance0.0095 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D04 #042831
analogous
#310411 #310D04 #312304
triadic
#310D04 #04310D #0D0431
tetradic
#310D04 #113104 #042831 #230431
square
#310D04 #113104 #042831 #230431
split-complementary
#310D04 #043123 #041131
monochromatic
#1C0802 #1C0802 #310D04 #6A1C09 #A22B0D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##310D04#FFFFFF#000000##FFFFFF
##310D041.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)
#171403
Deuteranopia (green-blind)
#201C03
Tritanopia (blue-blind)
#37050B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310d04;
/* rgb */ color: rgb(49, 13, 4);
/* oklch */ color: oklch(21.8% 0.062 36.7);
Tailwind
colors: {
  custom: {
    50: '#6c4d48',
    500: '#310d04',
    950: '#000000',
  },
}
SCSS
$custom: #310d04;
$custom-light: #6c4d48;
$custom-dark: #000000;
JSON
{
  "hex": "#310d04",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 4
  },
  "hsl": {
    "h": 12,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.21845,
    "c": 0.06161,
    "h": 36.7
  },
  "luminance": 0.0095
}

Semantic roles & 50–950 ramp

primary
#310D04
secondary
#1D6273
accent
#D2FB2D
background
#F6F4F4
surface
#ECE7E6
border
#C7C3C2
text
#070100
muted
#7A7777

Preview Lab

Preview with #310D04

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

Preview Lab → · Contrast checker → · Palette generator →

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