#321A89#321A89

#321A89 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.169 H 282.4°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#321A89
RGBrgb(50, 26, 137)
HSLhsl(253, 68%, 32%)
HSVhsv(253, 81%, 54%)
CMYKcmyk(63.5%, 81%, 0%, 46.3%)
CIE-LABlab(20.91, 42.15, -57.10)
CIE-LCHlch(20.91, 70.97, 306.43°)
OKLaboklab(33.72% 0.0363 -0.1647)
OKLCHoklch(33.72% 0.169 282.4)
XYZxyz(6.1987, 3.2226, 23.9574)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A89 #71891A
analogous
#1A3A89 #321A89 #6A1A89
triadic
#321A89 #89321A #1A8932
tetradic
#321A89 #891A3A #71891A #1A896A
square
#321A89 #891A3A #71891A #1A896A
split-complementary
#321A89 #896A1A #3A891A
monochromatic
#0C0622 #1F1056 #321A89 #4524BC #6342DB

Accessibility & contrast

On white

12.77
#321A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321A89
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A89#FFFFFF#000000##FFFFFF
##321A891.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321a89;
/* rgb */ color: rgb(50, 26, 137);
/* oklch */ color: oklch(33.7% 0.169 282.4);
Tailwind
colors: {
  custom: {
    50: '#765bad',
    500: '#321a89',
    950: '#000000',
  },
}
SCSS
$custom: #321a89;
$custom-light: #765bad;
$custom-dark: #000000;
JSON
{
  "hex": "#321a89",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 252.973,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33717,
    "c": 0.16864,
    "h": 282.4
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#321A89
secondary
#A2BC43
accent
#EB3DC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321A89

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

Preview Lab → · Contrast checker → · Palette generator →

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