#321B84#321B84

#321B84 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.162 H 283.3°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#321B84
RGBrgb(50, 27, 132)
HSLhsl(253, 66%, 31%)
HSVhsv(253, 80%, 52%)
CMYKcmyk(62.1%, 79.5%, 0%, 48.2%)
CIE-LABlab(20.55, 40.12, -54.56)
CIE-LCHlch(20.55, 67.72, 306.33°)
OKLaboklab(33.3% 0.0372 -0.1573)
OKLCHoklch(33.3% 0.162 283.3)
XYZxyz(5.8709, 3.1275, 22.1196)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B84 #6D841B
analogous
#1B3884 #321B84 #661B84
triadic
#321B84 #84321B #1B8432
tetradic
#321B84 #841B38 #6D841B #1B8466
square
#321B84 #841B38 #6D841B #1B8466
split-complementary
#321B84 #84661B #38841B
monochromatic
#0C061E #1F1151 #321B84 #4525B7 #6241D8

Accessibility & contrast

On white

12.92
#321B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#321B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B84
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B84#FFFFFF#000000##FFFFFF
##321B841.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321b84;
/* rgb */ color: rgb(50, 27, 132);
/* oklch */ color: oklch(33.3% 0.162 283.3);
Tailwind
colors: {
  custom: {
    50: '#755ba9',
    500: '#321b84',
    950: '#000000',
  },
}
SCSS
$custom: #321b84;
$custom-light: #755ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#321b84",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 253.143,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.333,
    "c": 0.16162,
    "h": 283.3
  },
  "luminance": 0.03128
}

Semantic roles & 50–950 ramp

primary
#321B84
secondary
#9EB743
accent
#E93FC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321B84

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

Preview Lab → · Contrast checker → · Palette generator →

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