#321B86#321B86

#321B86 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.164 H 282.9°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#321B86
RGBrgb(50, 27, 134)
HSLhsl(253, 66%, 32%)
HSVhsv(253, 80%, 53%)
CMYKcmyk(62.7%, 79.9%, 0%, 47.5%)
CIE-LABlab(20.76, 40.73, -55.46)
CIE-LCHlch(20.76, 68.81, 306.29°)
OKLaboklab(33.51% 0.0366 -0.1599)
OKLCHoklch(33.51% 0.164 282.9)
XYZxyz(6.0091, 3.1828, 22.8473)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B86 #6F861B
analogous
#1B3A86 #321B86 #681B86
triadic
#321B86 #86321B #1B8632
tetradic
#321B86 #861B3A #6F861B #1B8668
square
#321B86 #861B3A #6F861B #1B8668
split-complementary
#321B86 #86681B #3A861B
monochromatic
#0C0620 #1F1153 #321B86 #4525B9 #6342D9

Accessibility & contrast

On white

12.83
#321B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#321B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B86
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B86#FFFFFF#000000##FFFFFF
##321B861.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321b86;
/* rgb */ color: rgb(50, 27, 134);
/* oklch */ color: oklch(33.5% 0.164 282.9);
Tailwind
colors: {
  custom: {
    50: '#765baa',
    500: '#321b86',
    950: '#000000',
  },
}
SCSS
$custom: #321b86;
$custom-light: #765baa;
$custom-dark: #000000;
JSON
{
  "hex": "#321b86",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 252.897,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33514,
    "c": 0.16407,
    "h": 282.9
  },
  "luminance": 0.03183
}

Semantic roles & 50–950 ramp

primary
#321B86
secondary
#A0B944
accent
#E93EC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321B86

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

Preview Lab → · Contrast checker → · Palette generator →

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