#310C08#310C08

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

Color values

HEX#310C08
RGBrgb(49, 12, 8)
HSLhsl(6, 72%, 11%)
HSVhsv(6, 84%, 19%)
CMYKcmyk(0%, 75.5%, 83.7%, 80.8%)
CIE-LABlab(8.43, 18.50, 9.75)
CIE-LCHlch(8.43, 20.91, 27.79°)
OKLaboklab(21.76% 0.0534 0.03)
OKLCHoklch(21.76% 0.061 29.3)
XYZxyz(1.4421, 0.9336, 0.3340)
Luminance0.0093 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C08 #082D31
analogous
#310818 #310C08 #312008
triadic
#310C08 #08310C #0C0831
tetradic
#310C08 #183108 #082D31 #200831
square
#310C08 #183108 #082D31 #200831
split-complementary
#310C08 #083120 #081831
monochromatic
#1A0604 #1A0604 #310C08 #661911 #9A2619

Accessibility & contrast

On white

17.70
#310C08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C08
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C08#FFFFFF#000000##FFFFFF
##310C081.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161307
Deuteranopia (green-blind)
#1F1B07
Tritanopia (blue-blind)
#37050B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310c08;
/* rgb */ color: rgb(49, 12, 8);
/* oklch */ color: oklch(21.8% 0.061 29.3);
Tailwind
colors: {
  custom: {
    50: '#6c4d4a',
    500: '#310c08',
    950: '#000000',
  },
}
SCSS
$custom: #310c08;
$custom-light: #6c4d4a;
$custom-dark: #000000;
JSON
{
  "hex": "#310c08",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 8
  },
  "hsl": {
    "h": 5.854,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.21764,
    "c": 0.06127,
    "h": 29.3
  },
  "luminance": 0.00933
}

Semantic roles & 50–950 ramp

primary
#310C08
secondary
#256970
accent
#DDEF39
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310C08

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

Preview Lab → · Contrast checker → · Palette generator →

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