#321C91#321C91

#321C91 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.176 H 280.7°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#321C91
RGBrgb(50, 28, 145)
HSLhsl(251, 68%, 34%)
HSVhsv(251, 81%, 57%)
CMYKcmyk(65.5%, 80.7%, 0%, 43.1%)
CIE-LABlab(22.13, 43.61, -60.07)
CIE-LCHlch(22.13, 74.23, 305.98°)
OKLaboklab(34.83% 0.0327 -0.1734)
OKLCHoklch(34.83% 0.176 280.7)
XYZxyz(6.8399, 3.5524, 27.1078)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C91 #7B911C
analogous
#1C4191 #321C91 #6D1C91
triadic
#321C91 #91321C #1C9132
tetradic
#321C91 #911C41 #7B911C #1C916D
square
#321C91 #911C41 #7B911C #1C916D
split-complementary
#321C91 #916D1C #41911C
monochromatic
#0F082A #20125E #321C91 #4426C4 #664BDC

Accessibility & contrast

On white

12.28
#321C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#321C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C91
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C91#FFFFFF#000000##FFFFFF
##321C911.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003994
Deuteranopia (green-blind)
#00318F
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #321c91;
/* rgb */ color: rgb(50, 28, 145);
/* oklch */ color: oklch(34.8% 0.176 280.7);
Tailwind
colors: {
  custom: {
    50: '#785cb2',
    500: '#321c91',
    950: '#000000',
  },
}
SCSS
$custom: #321c91;
$custom-light: #785cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#321c91",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 145
  },
  "hsl": {
    "h": 251.282,
    "s": 67.63,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34826,
    "c": 0.17643,
    "h": 280.7
  },
  "luminance": 0.03553
}

Semantic roles & 50–950 ramp

primary
#321C91
secondary
#A9BE4A
accent
#EB3DCA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321C91

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

Preview Lab → · Contrast checker → · Palette generator →

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