#310832#310832

#310832 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.1% C 0.088 H 326.9°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#310832
RGBrgb(49, 8, 50)
HSLhsl(299, 72%, 11%)
HSVhsv(299, 84%, 20%)
CMYKcmyk(2%, 84%, 0%, 80.4%)
CIE-LABlab(9.46, 26.65, -17.30)
CIE-LCHlch(9.46, 31.78, 327.01°)
OKLaboklab(23.1% 0.0738 -0.048)
OKLCHoklch(23.1% 0.088 326.9)
XYZxyz(1.9291, 1.0571, 3.1194)
Luminance0.0106 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310832 #093208
analogous
#1C0832 #310832 #32081E
triadic
#310832 #323108 #083231
tetradic
#310832 #321C08 #093208 #081E32
square
#310832 #321C08 #093208 #081E32
split-complementary
#310832 #1E3208 #08321C
monochromatic
#1A041A #1A041A #310832 #651067 #98199C

Accessibility & contrast

On white

17.34
#310832 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#310832 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310832
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310832#FFFFFF#000000##FFFFFF
##3108321.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021733
Deuteranopia (green-blind)
#121C31
Tritanopia (blue-blind)
#330E1C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310832;
/* rgb */ color: rgb(49, 8, 50);
/* oklch */ color: oklch(23.1% 0.088 326.9);
Tailwind
colors: {
  custom: {
    50: '#6b4c6a',
    500: '#310832',
    950: '#000000',
  },
}
SCSS
$custom: #310832;
$custom-light: #6b4c6a;
$custom-dark: #000000;
JSON
{
  "hex": "#310832",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 50
  },
  "hsl": {
    "h": 298.571,
    "s": 72.414,
    "l": 11.373
  },
  "oklch": {
    "l": 0.23101,
    "c": 0.08801,
    "h": 326.9
  },
  "luminance": 0.01057
}

Semantic roles & 50–950 ramp

primary
#310832
secondary
#277125
accent
#EF393D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310832

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

Preview Lab → · Contrast checker → · Palette generator →

#310832 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva