#321C84#321C84

#321C84 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.161 H 283.1°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#321C84
RGBrgb(50, 28, 132)
HSLhsl(253, 65%, 31%)
HSVhsv(253, 79%, 52%)
CMYKcmyk(62.1%, 78.8%, 0%, 48.2%)
CIE-LABlab(20.73, 39.60, -54.26)
CIE-LCHlch(20.73, 67.17, 306.12°)
OKLaboklab(33.43% 0.0365 -0.1564)
OKLCHoklch(33.43% 0.161 283.1)
XYZxyz(5.8942, 3.1742, 22.1274)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C84 #6E841C
analogous
#1C3A84 #321C84 #661C84
triadic
#321C84 #84321C #1C8432
tetradic
#321C84 #841C3A #6E841C #1C8466
square
#321C84 #841C3A #6E841C #1C8466
split-complementary
#321C84 #84661C #3A841C
monochromatic
#0C071F #1F1152 #321C84 #4527B6 #6343D7

Accessibility & contrast

On white

12.84
#321C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#321C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C84
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C84#FFFFFF#000000##FFFFFF
##321C841.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321c84;
/* rgb */ color: rgb(50, 28, 132);
/* oklch */ color: oklch(33.4% 0.161 283.1);
Tailwind
colors: {
  custom: {
    50: '#755ba9',
    500: '#321c84',
    950: '#000000',
  },
}
SCSS
$custom: #321c84;
$custom-light: #755ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#321c84",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 252.692,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33427,
    "c": 0.16064,
    "h": 283.1
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#321C84
secondary
#9FB745
accent
#E840C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321C84

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

Preview Lab → · Contrast checker → · Palette generator →

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