#321989#321989

#321989 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.170 H 282.6°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#321989
RGBrgb(50, 25, 137)
HSLhsl(253, 69%, 32%)
HSVhsv(253, 82%, 54%)
CMYKcmyk(63.5%, 81.8%, 0%, 46.3%)
CIE-LABlab(20.75, 42.63, -57.37)
CIE-LCHlch(20.75, 71.48, 306.61°)
OKLaboklab(33.6% 0.0369 -0.1655)
OKLCHoklch(33.6% 0.17 282.6)
XYZxyz(6.1770, 3.1791, 23.9502)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321989 #708919
analogous
#193889 #321989 #6A1989
triadic
#321989 #893219 #198932
tetradic
#321989 #891938 #708919 #19896A
square
#321989 #891938 #708919 #19896A
split-complementary
#321989 #896A19 #388919
monochromatic
#0C0621 #1F1055 #321989 #4522BD #6340DC

Accessibility & contrast

On white

12.84
#321989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#321989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321989
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321989#FFFFFF#000000##FFFFFF
##3219891.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321989;
/* rgb */ color: rgb(50, 25, 137);
/* oklch */ color: oklch(33.6% 0.170 282.6);
Tailwind
colors: {
  custom: {
    50: '#765aad',
    500: '#321989',
    950: '#000000',
  },
}
SCSS
$custom: #321989;
$custom-light: #765aad;
$custom-dark: #000000;
JSON
{
  "hex": "#321989",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 253.393,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33601,
    "c": 0.16954,
    "h": 282.6
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#321989
secondary
#A1BC41
accent
#EC3CC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321989

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

Preview Lab → · Contrast checker → · Palette generator →

#321989 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva