#321A91#321A91

#321A91 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.178 H 280.9°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#321A91
RGBrgb(50, 26, 145)
HSLhsl(252, 70%, 34%)
HSVhsv(252, 82%, 57%)
CMYKcmyk(65.5%, 82.1%, 0%, 43.1%)
CIE-LABlab(21.80, 44.57, -60.62)
CIE-LCHlch(21.80, 75.24, 306.32°)
OKLaboklab(34.6% 0.0337 -0.1749)
OKLCHoklch(34.6% 0.178 280.9)
XYZxyz(6.7940, 3.4607, 27.0925)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A91 #79911A
analogous
#1A3D91 #321A91 #6D1A91
triadic
#321A91 #91321A #1A9132
tetradic
#321A91 #911A3D #79911A #1A916D
square
#321A91 #911A3D #79911A #1A916D
split-complementary
#321A91 #916D1A #3D911A
monochromatic
#0E0729 #20115D #321A91 #4423C5 #6647DE

Accessibility & contrast

On white

12.41
#321A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#321A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A91
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A91#FFFFFF#000000##FFFFFF
##321A911.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003894
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #321a91;
/* rgb */ color: rgb(50, 26, 145);
/* oklch */ color: oklch(34.6% 0.178 280.9);
Tailwind
colors: {
  custom: {
    50: '#785bb2',
    500: '#321a91',
    950: '#000000',
  },
}
SCSS
$custom: #321a91;
$custom-light: #785bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#321a91",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 145
  },
  "hsl": {
    "h": 252.101,
    "s": 69.591,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34596,
    "c": 0.17817,
    "h": 280.9
  },
  "luminance": 0.03461
}

Semantic roles & 50–950 ramp

primary
#321A91
secondary
#A7C047
accent
#EC3BC9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321A91

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

Preview Lab → · Contrast checker → · Palette generator →

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