#321C90#321C90

#321C90 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.175 H 280.8°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#321C90
RGBrgb(50, 28, 144)
HSLhsl(251, 67%, 34%)
HSVhsv(251, 81%, 56%)
CMYKcmyk(65.3%, 80.6%, 0%, 43.5%)
CIE-LABlab(22.02, 43.30, -59.63)
CIE-LCHlch(22.02, 73.70, 305.98°)
OKLaboklab(34.72% 0.033 -0.1721)
OKLCHoklch(34.72% 0.175 280.8)
XYZxyz(6.7631, 3.5217, 26.7035)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C90 #7A901C
analogous
#1C4090 #321C90 #6C1C90
triadic
#321C90 #90321C #1C9032
tetradic
#321C90 #901C40 #7A901C #1C906C
square
#321C90 #901C40 #7A901C #1C906C
split-complementary
#321C90 #906C1C #40901C
monochromatic
#0E082A #20125D #321C90 #4426C3 #664ADC

Accessibility & contrast

On white

12.32
#321C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#321C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C90
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C90#FFFFFF#000000##FFFFFF
##321C901.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#00308E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #321c90;
/* rgb */ color: rgb(50, 28, 144);
/* oklch */ color: oklch(34.7% 0.175 280.8);
Tailwind
colors: {
  custom: {
    50: '#785cb2',
    500: '#321c90',
    950: '#000000',
  },
}
SCSS
$custom: #321c90;
$custom-light: #785cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#321c90",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 144
  },
  "hsl": {
    "h": 251.379,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34716,
    "c": 0.17523,
    "h": 280.8
  },
  "luminance": 0.03522
}

Semantic roles & 50–950 ramp

primary
#321C90
secondary
#A8BE4A
accent
#EA3DCA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321C90

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

Preview Lab → · Contrast checker → · Palette generator →

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