#310A0F#310A0F

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

Color values

HEX#310A0F
RGBrgb(49, 10, 15)
HSLhsl(352, 66%, 12%)
HSVhsv(352, 80%, 19%)
CMYKcmyk(0%, 79.6%, 69.4%, 80.8%)
CIE-LABlab(8.17, 20.15, 6.23)
CIE-LCHlch(8.17, 21.09, 17.18°)
OKLaboklab(21.62% 0.0603 0.0182)
OKLCHoklch(21.62% 0.063 16.7)
XYZxyz(1.4615, 0.9047, 0.5495)
Luminance0.0091 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A0F #0A312C
analogous
#310A23 #310A0F #31190A
triadic
#310A0F #0F310A #0A0F31
tetradic
#310A0F #23310A #0A312C #190A31
square
#310A0F #23310A #0A312C #190A31
split-complementary
#310A0F #0A3119 #0A2331
monochromatic
#190508 #190508 #310A0F #64141F #971F2E

Accessibility & contrast

On white

17.78
#310A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A0F
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A0F#FFFFFF#000000##FFFFFF
##310A0F1.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14130F
Deuteranopia (green-blind)
#1E1B0E
Tritanopia (blue-blind)
#36040C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310a0f;
/* rgb */ color: rgb(49, 10, 15);
/* oklch */ color: oklch(21.6% 0.063 16.7);
Tailwind
colors: {
  custom: {
    50: '#6c4c4e',
    500: '#310a0f',
    950: '#000000',
  },
}
SCSS
$custom: #310a0f;
$custom-light: #6c4c4e;
$custom-dark: #000000;
JSON
{
  "hex": "#310a0f",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 15
  },
  "hsl": {
    "h": 352.308,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21621,
    "c": 0.06301,
    "h": 16.7
  },
  "luminance": 0.00905
}

Semantic roles & 50–950 ramp

primary
#310A0F
secondary
#296E65
accent
#E9D33F
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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