#321B8A#321B8A

#321B8A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.169 H 282.1°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#321B8A
RGBrgb(50, 27, 138)
HSLhsl(252, 67%, 32%)
HSVhsv(252, 80%, 54%)
CMYKcmyk(63.8%, 80.4%, 0%, 45.9%)
CIE-LABlab(21.19, 41.96, -57.26)
CIE-LCHlch(21.19, 70.99, 306.23°)
OKLaboklab(33.94% 0.0354 -0.1652)
OKLCHoklch(33.94% 0.169 282.1)
XYZxyz(6.2933, 3.2965, 24.3445)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B8A #738A1B
analogous
#1B3C8A #321B8A #691B8A
triadic
#321B8A #8A321B #1B8A32
tetradic
#321B8A #8A1B3C #738A1B #1B8A69
square
#321B8A #8A1B3C #738A1B #1B8A69
split-complementary
#321B8A #8A691B #3C8A1B
monochromatic
#0D0724 #1F1157 #321B8A #4525BD #6445DB

Accessibility & contrast

On white

12.66
#321B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#321B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B8A
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B8A#FFFFFF#000000##FFFFFF
##321B8A1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #321b8a;
/* rgb */ color: rgb(50, 27, 138);
/* oklch */ color: oklch(33.9% 0.169 282.1);
Tailwind
colors: {
  custom: {
    50: '#765bad',
    500: '#321b8a',
    950: '#000000',
  },
}
SCSS
$custom: #321b8a;
$custom-light: #765bad;
$custom-dark: #000000;
JSON
{
  "hex": "#321b8a",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 252.432,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33944,
    "c": 0.16892,
    "h": 282.1
  },
  "luminance": 0.03297
}

Semantic roles & 50–950 ramp

primary
#321B8A
secondary
#A3BC45
accent
#EA3EC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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