#321A84#321A84

#321A84 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.163 H 283.5°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#321A84
RGBrgb(50, 26, 132)
HSLhsl(254, 67%, 31%)
HSVhsv(254, 80%, 52%)
CMYKcmyk(62.1%, 80.3%, 0%, 48.2%)
CIE-LABlab(20.37, 40.62, -54.85)
CIE-LCHlch(20.37, 68.26, 306.52°)
OKLaboklab(33.18% 0.0378 -0.1581)
OKLCHoklch(33.18% 0.163 283.5)
XYZxyz(5.8484, 3.0824, 22.1121)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A84 #6C841A
analogous
#1A3784 #321A84 #671A84
triadic
#321A84 #84321A #1A8432
tetradic
#321A84 #841A37 #6C841A #1A8467
square
#321A84 #841A37 #6C841A #1A8467
split-complementary
#321A84 #84671A #37841A
monochromatic
#0B061E #1F1051 #321A84 #4524B7 #623FD9

Accessibility & contrast

On white

12.99
#321A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#321A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A84
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A84#FFFFFF#000000##FFFFFF
##321A841.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321a84;
/* rgb */ color: rgb(50, 26, 132);
/* oklch */ color: oklch(33.2% 0.163 283.5);
Tailwind
colors: {
  custom: {
    50: '#755aa9',
    500: '#321a84',
    950: '#000000',
  },
}
SCSS
$custom: #321a84;
$custom-light: #755aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#321a84",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 253.585,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33177,
    "c": 0.16259,
    "h": 283.5
  },
  "luminance": 0.03083
}

Semantic roles & 50–950 ramp

primary
#321A84
secondary
#9DB842
accent
#EA3EC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321A84

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

Preview Lab → · Contrast checker → · Palette generator →

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