#321E86#321E86

#321E86 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.161 H 282.4°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#321E86
RGBrgb(50, 30, 134)
HSLhsl(252, 63%, 32%)
HSVhsv(252, 78%, 53%)
CMYKcmyk(62.7%, 77.6%, 0%, 47.5%)
CIE-LABlab(21.31, 39.16, -54.56)
CIE-LCHlch(21.31, 67.16, 305.67°)
OKLaboklab(33.9% 0.0345 -0.1573)
OKLCHoklch(33.9% 0.161 282.4)
XYZxyz(6.0814, 3.3275, 22.8714)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E86 #72861E
analogous
#1E3E86 #321E86 #661E86
triadic
#321E86 #86321E #1E8632
tetradic
#321E86 #861E3E #72861E #1E8666
square
#321E86 #861E3E #72861E #1E8666
split-complementary
#321E86 #86661E #3E861E
monochromatic
#0D0822 #1F1354 #321E86 #4529B8 #6448D6

Accessibility & contrast

On white

12.61
#321E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#321E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E86
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E86#FFFFFF#000000##FFFFFF
##321E861.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321e86;
/* rgb */ color: rgb(50, 30, 134);
/* oklch */ color: oklch(33.9% 0.161 282.4);
Tailwind
colors: {
  custom: {
    50: '#755daa',
    500: '#321e86',
    950: '#000000',
  },
}
SCSS
$custom: #321e86;
$custom-light: #755daa;
$custom-dark: #000000;
JSON
{
  "hex": "#321e86",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 134
  },
  "hsl": {
    "h": 251.538,
    "s": 63.415,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33898,
    "c": 0.16108,
    "h": 282.4
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#321E86
secondary
#A3B847
accent
#E641C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321E86

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

Preview Lab → · Contrast checker → · Palette generator →

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