#310B31#310B31

#310B31 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.082 H 327.8°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#310B31
RGBrgb(49, 11, 49)
HSLhsl(300, 63%, 12%)
HSVhsv(300, 78%, 19%)
CMYKcmyk(0%, 77.6%, 0%, 80.8%)
CIE-LABlab(9.91, 24.98, -15.86)
CIE-LCHlch(9.91, 29.59, 327.60°)
OKLaboklab(23.4% 0.0696 -0.0438)
OKLCHoklch(23.4% 0.082 327.8)
XYZxyz(1.9406, 1.1142, 3.0180)
Luminance0.0111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B31 #0B310B
analogous
#1E0B31 #310B31 #310B1E
triadic
#310B31 #31310B #0B3131
tetradic
#310B31 #311E0B #0B310B #0B1E31
square
#310B31 #311E0B #0B310B #0B1E31
split-complementary
#310B31 #1E310B #0B311E
monochromatic
#190619 #190619 #310B31 #631663 #952195

Accessibility & contrast

On white

17.17
#310B31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#310B31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310B31
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B31#FFFFFF#000000##FFFFFF
##310B311.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061832
Deuteranopia (green-blind)
#141D30
Tritanopia (blue-blind)
#33101C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310b31;
/* rgb */ color: rgb(49, 11, 49);
/* oklch */ color: oklch(23.4% 0.082 327.8);
Tailwind
colors: {
  custom: {
    50: '#6b4d69',
    500: '#310b31',
    950: '#000000',
  },
}
SCSS
$custom: #310b31;
$custom-light: #6b4d69;
$custom-dark: #000000;
JSON
{
  "hex": "#310b31",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 49
  },
  "hsl": {
    "h": 300,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23403,
    "c": 0.08228,
    "h": 327.8
  },
  "luminance": 0.01114
}

Semantic roles & 50–950 ramp

primary
#310B31
secondary
#2A6E2A
accent
#E64141
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310B31

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

Preview Lab → · Contrast checker → · Palette generator →

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