#321D84#321D84

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

Color values

HEX#321D84
RGBrgb(50, 29, 132)
HSLhsl(252, 64%, 32%)
HSVhsv(252, 78%, 52%)
CMYKcmyk(62.1%, 78%, 0%, 48.2%)
CIE-LABlab(20.91, 39.07, -53.96)
CIE-LCHlch(20.91, 66.62, 305.91°)
OKLaboklab(33.56% 0.0358 -0.1555)
OKLCHoklch(33.56% 0.16 283)
XYZxyz(5.9183, 3.2224, 22.1354)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D84 #6F841D
analogous
#1D3C84 #321D84 #661D84
triadic
#321D84 #84321D #1D8432
tetradic
#321D84 #841D3C #6F841D #1D8466
square
#321D84 #841D3C #6F841D #1D8466
split-complementary
#321D84 #84661D #3C841D
monochromatic
#0C0720 #1F1252 #321D84 #4528B6 #6345D6

Accessibility & contrast

On white

12.77
#321D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D84
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D84#FFFFFF#000000##FFFFFF
##321D841.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321d84;
/* rgb */ color: rgb(50, 29, 132);
/* oklch */ color: oklch(33.6% 0.160 283.0);
Tailwind
colors: {
  custom: {
    50: '#755ca9',
    500: '#321d84',
    950: '#000000',
  },
}
SCSS
$custom: #321d84;
$custom-light: #755ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#321d84",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 132
  },
  "hsl": {
    "h": 252.233,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33556,
    "c": 0.15961,
    "h": 283
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#321D84
secondary
#A0B746
accent
#E741C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321D84

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

Preview Lab → · Contrast checker → · Palette generator →

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