#310B32#310B32

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

Color values

HEX#310B32
RGBrgb(49, 11, 50)
HSLhsl(298, 64%, 12%)
HSVhsv(298, 78%, 20%)
CMYKcmyk(2%, 78%, 0%, 80.4%)
CIE-LABlab(9.97, 25.20, -16.49)
CIE-LCHlch(9.97, 30.11, 326.81°)
OKLaboklab(23.47% 0.0697 -0.0457)
OKLCHoklch(23.47% 0.083 326.8)
XYZxyz(1.9620, 1.1227, 3.1304)
Luminance0.0112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B32 #0C320B
analogous
#1E0B32 #310B32 #320B20
triadic
#310B32 #32310B #0B3231
tetradic
#310B32 #321E0B #0C320B #0B2032
square
#310B32 #321E0B #0C320B #0B2032
split-complementary
#310B32 #20320B #0B321E
monochromatic
#190619 #190619 #310B32 #621664 #932196

Accessibility & contrast

On white

17.15
#310B32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B32
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B32#FFFFFF#000000##FFFFFF
##310B321.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051833
Deuteranopia (green-blind)
#141D31
Tritanopia (blue-blind)
#33111D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310b32;
/* rgb */ color: rgb(49, 11, 50);
/* oklch */ color: oklch(23.5% 0.083 326.8);
Tailwind
colors: {
  custom: {
    50: '#6b4d6a',
    500: '#310b32',
    950: '#000000',
  },
}
SCSS
$custom: #310b32;
$custom-light: #6b4d6a;
$custom-dark: #000000;
JSON
{
  "hex": "#310b32",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 50
  },
  "hsl": {
    "h": 298.462,
    "s": 63.934,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23472,
    "c": 0.0833,
    "h": 326.8
  },
  "luminance": 0.01123
}

Semantic roles & 50–950 ramp

primary
#310B32
secondary
#2C6F2A
accent
#E74145
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310B32

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

Preview Lab → · Contrast checker → · Palette generator →

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