#321B89#321B89

#321B89 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.168 H 282.3°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#321B89
RGBrgb(50, 27, 137)
HSLhsl(253, 67%, 32%)
HSVhsv(253, 80%, 54%)
CMYKcmyk(63.5%, 80.3%, 0%, 46.3%)
CIE-LABlab(21.09, 41.65, -56.81)
CIE-LCHlch(21.09, 70.45, 306.25°)
OKLaboklab(33.84% 0.0357 -0.1639)
OKLCHoklch(33.84% 0.168 282.3)
XYZxyz(6.2213, 3.2677, 23.9649)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B89 #72891B
analogous
#1B3B89 #321B89 #691B89
triadic
#321B89 #89321B #1B8932
tetradic
#321B89 #891B3B #72891B #1B8969
square
#321B89 #891B3B #72891B #1B8969
split-complementary
#321B89 #89691B #3B891B
monochromatic
#0D0723 #1F1156 #321B89 #4525BC #6444DA

Accessibility & contrast

On white

12.70
#321B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#321B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B89
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B89#FFFFFF#000000##FFFFFF
##321B891.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321b89;
/* rgb */ color: rgb(50, 27, 137);
/* oklch */ color: oklch(33.8% 0.168 282.3);
Tailwind
colors: {
  custom: {
    50: '#765bad',
    500: '#321b89',
    950: '#000000',
  },
}
SCSS
$custom: #321b89;
$custom-light: #765bad;
$custom-dark: #000000;
JSON
{
  "hex": "#321b89",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 252.545,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33836,
    "c": 0.16771,
    "h": 282.3
  },
  "luminance": 0.03268
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #321B89

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

Preview Lab → · Contrast checker → · Palette generator →

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