#321D82#321D82

#321D82 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.157 H 283.4°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#321D82
RGBrgb(50, 29, 130)
HSLhsl(252, 64%, 31%)
HSVhsv(252, 78%, 51%)
CMYKcmyk(61.5%, 77.7%, 0%, 49%)
CIE-LABlab(20.71, 38.44, -53.04)
CIE-LCHlch(20.71, 65.50, 305.94°)
OKLaboklab(33.35% 0.0363 -0.1529)
OKLCHoklch(33.35% 0.157 283.4)
XYZxyz(5.7828, 3.1682, 21.4216)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D82 #6D821D
analogous
#1D3A82 #321D82 #641D82
triadic
#321D82 #82321D #1D8232
tetradic
#321D82 #821D3A #6D821D #1D8264
square
#321D82 #821D3A #6D821D #1D8264
split-complementary
#321D82 #82641D #3A821D
monochromatic
#0C071E #1F1250 #321D82 #4528B4 #6244D5

Accessibility & contrast

On white

12.85
#321D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D82
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D82#FFFFFF#000000##FFFFFF
##321D821.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321d82;
/* rgb */ color: rgb(50, 29, 130);
/* oklch */ color: oklch(33.3% 0.157 283.4);
Tailwind
colors: {
  custom: {
    50: '#755ca7',
    500: '#321d82',
    950: '#000000',
  },
}
SCSS
$custom: #321d82;
$custom-light: #755ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#321d82",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 252.475,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33347,
    "c": 0.15713,
    "h": 283.4
  },
  "luminance": 0.03169
}

Semantic roles & 50–950 ramp

primary
#321D82
secondary
#9EB546
accent
#E741C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321D82

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

Preview Lab → · Contrast checker → · Palette generator →

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