#321B9E#321B9E

#321B9E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.193 H 278.7°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#321B9E
RGBrgb(50, 27, 158)
HSLhsl(251, 71%, 36%)
HSVhsv(251, 83%, 62%)
CMYKcmyk(68.4%, 82.9%, 0%, 38%)
CIE-LABlab(23.44, 48.00, -65.92)
CIE-LCHlch(23.44, 81.54, 306.06°)
OKLaboklab(36.16% 0.0291 -0.1904)
OKLCHoklch(36.16% 0.193 278.7)
XYZxyz(7.8769, 3.9299, 32.6846)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B9E #879E1B
analogous
#1B469E #321B9E #741B9E
triadic
#321B9E #9E321B #1B9E32
tetradic
#321B9E #9E1B46 #879E1B #1B9E74
square
#321B9E #9E1B46 #879E1B #1B9E74
split-complementary
#321B9E #9E741B #469E1B
monochromatic
#110935 #21126A #321B9E #4324D2 #6B52E1

Accessibility & contrast

On white

11.76
#321B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#321B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B9E
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B9E#FFFFFF#000000##FFFFFF
##321B9E1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #321b9e;
/* rgb */ color: rgb(50, 27, 158);
/* oklch */ color: oklch(36.2% 0.193 278.7);
Tailwind
colors: {
  custom: {
    50: '#7b5dbc',
    500: '#321b9e',
    950: '#000000',
  },
}
SCSS
$custom: #321b9e;
$custom-light: #7b5dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#321b9e",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 250.534,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36161,
    "c": 0.19258,
    "h": 278.7
  },
  "luminance": 0.03931
}

Semantic roles & 50–950 ramp

primary
#321B9E
secondary
#B0C451
accent
#EE3ACE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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