#321C87#321C87

#321C87 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.164 H 282.5°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#321C87
RGBrgb(50, 28, 135)
HSLhsl(252, 66%, 32%)
HSVhsv(252, 79%, 53%)
CMYKcmyk(63%, 79.3%, 0%, 47.1%)
CIE-LABlab(21.05, 40.53, -55.62)
CIE-LCHlch(21.05, 68.82, 306.08°)
OKLaboklab(33.75% 0.0356 -0.1604)
OKLCHoklch(33.75% 0.164 282.5)
XYZxyz(6.1025, 3.2575, 23.2242)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C87 #71871C
analogous
#1C3C87 #321C87 #671C87
triadic
#321C87 #87321C #1C8732
tetradic
#321C87 #871C3C #71871C #1C8767
square
#321C87 #871C3C #71871C #1C8767
split-complementary
#321C87 #87671C #3C871C
monochromatic
#0C0722 #1F1154 #321C87 #4527BA #6345D8

Accessibility & contrast

On white

12.71
#321C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#321C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C87
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C87#FFFFFF#000000##FFFFFF
##321C871.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #321c87;
/* rgb */ color: rgb(50, 28, 135);
/* oklch */ color: oklch(33.7% 0.164 282.5);
Tailwind
colors: {
  custom: {
    50: '#765cab',
    500: '#321c87',
    950: '#000000',
  },
}
SCSS
$custom: #321c87;
$custom-light: #765cab;
$custom-dark: #000000;
JSON
{
  "hex": "#321c87",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 252.336,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33745,
    "c": 0.16432,
    "h": 282.5
  },
  "luminance": 0.03258
}

Semantic roles & 50–950 ramp

primary
#321C87
secondary
#A2BA45
accent
#E93FC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321C87

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

Preview Lab → · Contrast checker → · Palette generator →

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