#321D9A#321D9A

#321D9A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.186 H 279.1°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#321D9A
RGBrgb(50, 29, 154)
HSLhsl(250, 68%, 36%)
HSVhsv(250, 81%, 60%)
CMYKcmyk(67.5%, 81.2%, 0%, 39.6%)
CIE-LABlab(23.30, 45.87, -63.69)
CIE-LCHlch(23.30, 78.49, 305.76°)
OKLaboklab(35.93% 0.0294 -0.1839)
OKLCHoklch(35.93% 0.186 279.1)
XYZxyz(7.5856, 3.8893, 30.9165)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D9A #859A1D
analogous
#1D469A #321D9A #701D9A
triadic
#321D9A #9A321D #1D9A32
tetradic
#321D9A #9A1D46 #859A1D #1D9A70
square
#321D9A #9A1D46 #859A1D #1D9A70
split-complementary
#321D9A #9A701D #469A1D
monochromatic
#110A33 #211366 #321D9A #4327CE #6A53DF

Accessibility & contrast

On white

11.81
#321D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#321D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D9A
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D9A#FFFFFF#000000##FFFFFF
##321D9A1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #321d9a;
/* rgb */ color: rgb(50, 29, 154);
/* oklch */ color: oklch(35.9% 0.186 279.1);
Tailwind
colors: {
  custom: {
    50: '#7a5db9',
    500: '#321d9a',
    950: '#000000',
  },
}
SCSS
$custom: #321d9a;
$custom-light: #7a5db9;
$custom-dark: #000000;
JSON
{
  "hex": "#321d9a",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 250.08,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35934,
    "c": 0.18626,
    "h": 279.1
  },
  "luminance": 0.0389
}

Semantic roles & 50–950 ramp

primary
#321D9A
secondary
#AFC251
accent
#EB3DCE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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