#310C31#310C31

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

Color values

HEX#310C31
RGBrgb(49, 12, 49)
HSLhsl(300, 61%, 12%)
HSVhsv(300, 76%, 19%)
CMYKcmyk(0%, 75.5%, 0%, 80.8%)
CIE-LABlab(10.09, 24.48, -15.57)
CIE-LCHlch(10.09, 29.01, 327.54°)
OKLaboklab(23.54% 0.0682 -0.043)
OKLCHoklch(23.54% 0.081 327.8)
XYZxyz(1.9524, 1.1378, 3.0219)
Luminance0.0114 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C31 #0C310C
analogous
#1F0C31 #310C31 #310C1F
triadic
#310C31 #31310C #0C3131
tetradic
#310C31 #311F0C #0C310C #0C1F31
square
#310C31 #311F0C #0C310C #0C1F31
split-complementary
#310C31 #1F310C #0C311F
monochromatic
#190619 #190619 #310C31 #621862 #932493

Accessibility & contrast

On white

17.11
#310C31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#310C31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C31
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C31#FFFFFF#000000##FFFFFF
##310C311.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071932
Deuteranopia (green-blind)
#151D30
Tritanopia (blue-blind)
#33111D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310c31;
/* rgb */ color: rgb(49, 12, 49);
/* oklch */ color: oklch(23.5% 0.081 327.8);
Tailwind
colors: {
  custom: {
    50: '#6b4e69',
    500: '#310c31',
    950: '#000000',
  },
}
SCSS
$custom: #310c31;
$custom-light: #6b4e69;
$custom-dark: #000000;
JSON
{
  "hex": "#310c31",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 49
  },
  "hsl": {
    "h": 300,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23535,
    "c": 0.08062,
    "h": 327.8
  },
  "luminance": 0.01138
}

Semantic roles & 50–950 ramp

primary
#310C31
secondary
#2C6D2C
accent
#E44444
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #310C31

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

Preview Lab → · Contrast checker → · Palette generator →

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