#310A31#310A31

#310A31 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.3% C 0.084 H 327.9°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#310A31
RGBrgb(49, 10, 49)
HSLhsl(300, 66%, 12%)
HSVhsv(300, 80%, 19%)
CMYKcmyk(0%, 79.6%, 0%, 80.8%)
CIE-LABlab(9.73, 25.47, -16.13)
CIE-LCHlch(9.73, 30.15, 327.65°)
OKLaboklab(23.28% 0.071 -0.0446)
OKLCHoklch(23.28% 0.084 327.9)
XYZxyz(1.9295, 1.0919, 3.0143)
Luminance0.0109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A31 #0A310A
analogous
#1E0A31 #310A31 #310A1E
triadic
#310A31 #31310A #0A3131
tetradic
#310A31 #311E0A #0A310A #0A1E31
square
#310A31 #311E0A #0A310A #0A1E31
split-complementary
#310A31 #1E310A #0A311E
monochromatic
#190519 #190519 #310A31 #641464 #971F97

Accessibility & contrast

On white

17.24
#310A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A31
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A31#FFFFFF#000000##FFFFFF
##310A311.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051832
Deuteranopia (green-blind)
#141D30
Tritanopia (blue-blind)
#330F1C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310a31;
/* rgb */ color: rgb(49, 10, 49);
/* oklch */ color: oklch(23.3% 0.084 327.9);
Tailwind
colors: {
  custom: {
    50: '#6b4d69',
    500: '#310a31',
    950: '#000000',
  },
}
SCSS
$custom: #310a31;
$custom-light: #6b4d69;
$custom-dark: #000000;
JSON
{
  "hex": "#310a31",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 49
  },
  "hsl": {
    "h": 300,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23278,
    "c": 0.08386,
    "h": 327.9
  },
  "luminance": 0.01092
}

Semantic roles & 50–950 ramp

primary
#310A31
secondary
#296E29
accent
#E93F3F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310A31

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

Preview Lab → · Contrast checker → · Palette generator →

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