#321C86#321C86

#321C86 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.163 H 282.7°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#321C86
RGBrgb(50, 28, 134)
HSLhsl(252, 65%, 32%)
HSVhsv(252, 79%, 53%)
CMYKcmyk(62.7%, 79.1%, 0%, 47.5%)
CIE-LABlab(20.94, 40.22, -55.17)
CIE-LCHlch(20.94, 68.27, 306.09°)
OKLaboklab(33.64% 0.0359 -0.1591)
OKLCHoklch(33.64% 0.163 282.7)
XYZxyz(6.0324, 3.2294, 22.8551)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C86 #70861C
analogous
#1C3B86 #321C86 #671C86
triadic
#321C86 #86321C #1C8632
tetradic
#321C86 #861C3B #70861C #1C8667
square
#321C86 #861C3B #70861C #1C8667
split-complementary
#321C86 #86671C #3B861C
monochromatic
#0C0721 #1F1153 #321C86 #4527B9 #6344D8

Accessibility & contrast

On white

12.76
#321C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#321C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C86
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C86#FFFFFF#000000##FFFFFF
##321C861.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321c86;
/* rgb */ color: rgb(50, 28, 134);
/* oklch */ color: oklch(33.6% 0.163 282.7);
Tailwind
colors: {
  custom: {
    50: '#755caa',
    500: '#321c86',
    950: '#000000',
  },
}
SCSS
$custom: #321c86;
$custom-light: #755caa;
$custom-dark: #000000;
JSON
{
  "hex": "#321c86",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 252.453,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33639,
    "c": 0.16309,
    "h": 282.7
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

primary
#321C86
secondary
#A1B945
accent
#E83FC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321C86

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

Preview Lab → · Contrast checker → · Palette generator →

#321C86 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva