#310A32#310A32

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

Color values

HEX#310A32
RGBrgb(49, 10, 50)
HSLhsl(299, 67%, 12%)
HSVhsv(299, 80%, 20%)
CMYKcmyk(2%, 80%, 0%, 80.4%)
CIE-LABlab(9.80, 25.68, -16.76)
CIE-LCHlch(9.80, 30.67, 326.88°)
OKLaboklab(23.35% 0.071 -0.0464)
OKLCHoklch(23.35% 0.085 326.8)
XYZxyz(1.9509, 1.1005, 3.1267)
Luminance0.0110 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A32 #0B320A
analogous
#1D0A32 #310A32 #320A1F
triadic
#310A32 #32310A #0A3231
tetradic
#310A32 #321D0A #0B320A #0A1F32
square
#310A32 #321D0A #0B320A #0A1F32
split-complementary
#310A32 #1F320A #0A321D
monochromatic
#19051A #19051A #310A32 #631465 #951E98

Accessibility & contrast

On white

17.21
#310A32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A32
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A32#FFFFFF#000000##FFFFFF
##310A321.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041833
Deuteranopia (green-blind)
#131D31
Tritanopia (blue-blind)
#33101C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310a32;
/* rgb */ color: rgb(49, 10, 50);
/* oklch */ color: oklch(23.3% 0.085 326.8);
Tailwind
colors: {
  custom: {
    50: '#6b4d6a',
    500: '#310a32',
    950: '#000000',
  },
}
SCSS
$custom: #310a32;
$custom-light: #6b4d6a;
$custom-dark: #000000;
JSON
{
  "hex": "#310a32",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 50
  },
  "hsl": {
    "h": 298.5,
    "s": 66.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23348,
    "c": 0.08487,
    "h": 326.8
  },
  "luminance": 0.011
}

Semantic roles & 50–950 ramp

primary
#310A32
secondary
#2A6F28
accent
#EA3E43
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310A32

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

Preview Lab → · Contrast checker → · Palette generator →

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