#310A08#310A08

#310A08 is a very dark, moderate red. Relative luminance 0.009; OKLCH L 21.5% C 0.064 H 27.0°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#310A08
RGBrgb(49, 10, 8)
HSLhsl(3, 72%, 11%)
HSVhsv(3, 84%, 19%)
CMYKcmyk(0%, 79.6%, 83.7%, 80.8%)
CIE-LABlab(8.02, 19.59, 9.16)
CIE-LCHlch(8.02, 21.62, 25.06°)
OKLaboklab(21.46% 0.0569 0.029)
OKLCHoklch(21.46% 0.064 27)
XYZxyz(1.4191, 0.8878, 0.3263)
Luminance0.0089 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A08 #082F31
analogous
#31081A #310A08 #311E08
triadic
#310A08 #08310A #0A0831
tetradic
#310A08 #1A3108 #082F31 #1E0831
square
#310A08 #1A3108 #082F31 #1E0831
split-complementary
#310A08 #08311E #081A31
monochromatic
#1A0504 #1A0504 #310A08 #661511 #9A1F19

Accessibility & contrast

On white

17.83
#310A08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#310A08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310A08
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A08#FFFFFF#000000##FFFFFF
##310A081.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151208
Deuteranopia (green-blind)
#1F1B07
Tritanopia (blue-blind)
#37030A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310a08;
/* rgb */ color: rgb(49, 10, 8);
/* oklch */ color: oklch(21.5% 0.064 27.0);
Tailwind
colors: {
  custom: {
    50: '#6c4c4a',
    500: '#310a08',
    950: '#000000',
  },
}
SCSS
$custom: #310a08;
$custom-light: #6c4c4a;
$custom-dark: #000000;
JSON
{
  "hex": "#310a08",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 8
  },
  "hsl": {
    "h": 2.927,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.21458,
    "c": 0.0638,
    "h": 27
  },
  "luminance": 0.00888
}

Semantic roles & 50–950 ramp

primary
#310A08
secondary
#256C70
accent
#E6EF39
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310A08

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

Preview Lab → · Contrast checker → · Palette generator →

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