#31216B#31216B

#31216B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.122 H 287.1°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#31216B
RGBrgb(49, 33, 107)
HSLhsl(253, 53%, 27%)
HSVhsv(253, 69%, 42%)
CMYKcmyk(54.2%, 69.2%, 0%, 58%)
CIE-LABlab(19.23, 28.53, -40.71)
CIE-LCHlch(19.23, 49.71, 305.02°)
OKLaboklab(31.6% 0.036 -0.1168)
OKLCHoklch(31.6% 0.122 287.1)
XYZxyz(4.4635, 2.8020, 14.2127)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31216B #5B6B21
analogous
#21366B #31216B #56216B
triadic
#31216B #6B3121 #216B31
tetradic
#31216B #6B2136 #5B6B21 #216B56
square
#31216B #6B2136 #5B6B21 #216B56
split-complementary
#31216B #6B5621 #366B21
monochromatic
#0B0717 #1C133C #31216B #462F9A #5E42C5

Accessibility & contrast

On white

13.46
#31216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#31216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31216B
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31216B#FFFFFF#000000##FFFFFF
##31216B1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#1B3343
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #31216b;
/* rgb */ color: rgb(49, 33, 107);
/* oklch */ color: oklch(31.6% 0.122 287.1);
Tailwind
colors: {
  custom: {
    50: '#6f5d96',
    500: '#31216b',
    950: '#000000',
  },
}
SCSS
$custom: #31216b;
$custom-light: #6f5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#31216b",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 252.973,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31596,
    "c": 0.12222,
    "h": 287.1
  },
  "luminance": 0.02802
}

Semantic roles & 50–950 ramp

primary
#31216B
secondary
#8C9F49
accent
#DC4CBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #31216B

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

Preview Lab → · Contrast checker → · Palette generator →

#31216B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva