#321B91#321B91

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

Color values

HEX#321B91
RGBrgb(50, 27, 145)
HSLhsl(252, 69%, 34%)
HSVhsv(252, 81%, 57%)
CMYKcmyk(65.5%, 81.4%, 0%, 43.1%)
CIE-LABlab(21.97, 44.09, -60.35)
CIE-LCHlch(21.97, 74.74, 306.15°)
OKLaboklab(34.71% 0.0332 -0.1742)
OKLCHoklch(34.71% 0.177 280.8)
XYZxyz(6.8165, 3.5058, 27.1000)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B91 #7A911B
analogous
#1B3F91 #321B91 #6D1B91
triadic
#321B91 #91321B #1B9132
tetradic
#321B91 #911B3F #7A911B #1B916D
square
#321B91 #911B3F #7A911B #1B916D
split-complementary
#321B91 #916D1B #3F911B
monochromatic
#0E082A #20115D #321B91 #4425C5 #6649DD

Accessibility & contrast

On white

12.34
#321B91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B91
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B91#FFFFFF#000000##FFFFFF
##321B911.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321b91;
/* rgb */ color: rgb(50, 27, 145);
/* oklch */ color: oklch(34.7% 0.177 280.8);
Tailwind
colors: {
  custom: {
    50: '#785cb2',
    500: '#321b91',
    950: '#000000',
  },
}
SCSS
$custom: #321b91;
$custom-light: #785cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#321b91",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 145
  },
  "hsl": {
    "h": 251.695,
    "s": 68.605,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34709,
    "c": 0.17731,
    "h": 280.8
  },
  "luminance": 0.03506
}

Semantic roles & 50–950 ramp

primary
#321B91
secondary
#A8BF49
accent
#EB3CC9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321B91

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

Preview Lab → · Contrast checker → · Palette generator →

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