#321A97#321A97

#321A97 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.185 H 279.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#321A97
RGBrgb(50, 26, 151)
HSLhsl(252, 71%, 35%)
HSVhsv(252, 83%, 59%)
CMYKcmyk(66.9%, 82.8%, 0%, 40.8%)
CIE-LABlab(22.48, 46.37, -63.20)
CIE-LCHlch(22.48, 78.39, 306.26°)
OKLaboklab(35.27% 0.0318 -0.1825)
OKLCHoklch(35.27% 0.185 279.9)
XYZxyz(7.2689, 3.6507, 29.5937)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A97 #7F971A
analogous
#1A4197 #321A97 #711A97
triadic
#321A97 #97321A #1A9732
tetradic
#321A97 #971A41 #7F971A #1A9771
square
#321A97 #971A41 #7F971A #1A9771
split-complementary
#321A97 #97711A #41971A
monochromatic
#0F082F #211163 #321A97 #4323CB #684BE0

Accessibility & contrast

On white

12.14
#321A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#321A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A97
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A97#FFFFFF#000000##FFFFFF
##321A971.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #321a97;
/* rgb */ color: rgb(50, 26, 151);
/* oklch */ color: oklch(35.3% 0.185 279.9);
Tailwind
colors: {
  custom: {
    50: '#795cb7',
    500: '#321a97',
    950: '#000000',
  },
}
SCSS
$custom: #321a97;
$custom-light: #795cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#321a97",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 251.52,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35266,
    "c": 0.18522,
    "h": 279.9
  },
  "luminance": 0.03651
}

Semantic roles & 50–950 ramp

primary
#321A97
secondary
#ABC24B
accent
#ED3ACB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321A97

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

Preview Lab → · Contrast checker → · Palette generator →

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