#321C89#321C89

#321C89 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.167 H 282.1°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#321C89
RGBrgb(50, 28, 137)
HSLhsl(252, 66%, 32%)
HSVhsv(252, 80%, 54%)
CMYKcmyk(63.5%, 79.6%, 0%, 46.3%)
CIE-LABlab(21.26, 41.15, -56.52)
CIE-LCHlch(21.26, 69.91, 306.05°)
OKLaboklab(33.96% 0.035 -0.163)
OKLCHoklch(33.96% 0.167 282.1)
XYZxyz(6.2446, 3.3143, 23.9727)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C89 #73891C
analogous
#1C3D89 #321C89 #691C89
triadic
#321C89 #89321C #1C8932
tetradic
#321C89 #891C3D #73891C #1C8969
square
#321C89 #891C3D #73891C #1C8969
split-complementary
#321C89 #89691C #3D891C
monochromatic
#0D0723 #1F1256 #321C89 #4526BC #6446D9

Accessibility & contrast

On white

12.63
#321C89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#321C89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C89
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C89#FFFFFF#000000##FFFFFF
##321C891.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #321c89;
/* rgb */ color: rgb(50, 28, 137);
/* oklch */ color: oklch(34.0% 0.167 282.1);
Tailwind
colors: {
  custom: {
    50: '#765cad',
    500: '#321c89',
    950: '#000000',
  },
}
SCSS
$custom: #321c89;
$custom-light: #765cad;
$custom-dark: #000000;
JSON
{
  "hex": "#321c89",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 137
  },
  "hsl": {
    "h": 252.11,
    "s": 66.061,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33959,
    "c": 0.16676,
    "h": 282.1
  },
  "luminance": 0.03315
}

Semantic roles & 50–950 ramp

primary
#321C89
secondary
#A3BB46
accent
#E93FC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321C89

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

Preview Lab → · Contrast checker → · Palette generator →

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