#321B96#321B96

#321B96 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.183 H 279.9°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#321B96
RGBrgb(50, 27, 150)
HSLhsl(251, 69%, 35%)
HSVhsv(251, 82%, 59%)
CMYKcmyk(66.7%, 82%, 0%, 41.2%)
CIE-LABlab(22.53, 45.60, -62.51)
CIE-LCHlch(22.53, 77.38, 306.11°)
OKLaboklab(35.26% 0.0316 -0.1805)
OKLCHoklch(35.26% 0.183 279.9)
XYZxyz(7.2106, 3.6634, 29.1754)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B96 #7F961B
analogous
#1B4196 #321B96 #701B96
triadic
#321B96 #96321B #1B9632
tetradic
#321B96 #961B41 #7F961B #1B9670
square
#321B96 #961B41 #7F961B #1B9670
split-complementary
#321B96 #96701B #41961B
monochromatic
#0F082E #211262 #321B96 #4324CA #684DDF

Accessibility & contrast

On white

12.12
#321B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#321B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B96
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B96#FFFFFF#000000##FFFFFF
##321B961.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #321b96;
/* rgb */ color: rgb(50, 27, 150);
/* oklch */ color: oklch(35.3% 0.183 279.9);
Tailwind
colors: {
  custom: {
    50: '#795cb6',
    500: '#321b96',
    950: '#000000',
  },
}
SCSS
$custom: #321b96;
$custom-light: #795cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#321b96",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 251.22,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35263,
    "c": 0.18323,
    "h": 279.9
  },
  "luminance": 0.03664
}

Semantic roles & 50–950 ramp

primary
#321B96
secondary
#ABC14C
accent
#EC3BCB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321B96

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

Preview Lab → · Contrast checker → · Palette generator →

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