#322187#322187

#322187 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.159 H 281.6°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#322187
RGBrgb(50, 33, 135)
HSLhsl(250, 61%, 33%)
HSVhsv(250, 76%, 53%)
CMYKcmyk(63%, 75.6%, 0%, 47.1%)
CIE-LABlab(22.00, 37.83, -54.06)
CIE-LCHlch(22.00, 65.98, 304.98°)
OKLaboklab(34.41% 0.0321 -0.1559)
OKLCHoklch(34.41% 0.159 281.6)
XYZxyz(6.2311, 3.5146, 23.2670)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322187 #768721
analogous
#214387 #322187 #652187
triadic
#322187 #873221 #218732
tetradic
#322187 #872143 #768721 #218765
square
#322187 #872143 #768721 #218765
split-complementary
#322187 #876521 #438721
monochromatic
#0E0925 #201556 #322187 #442DB8 #654FD4

Accessibility & contrast

On white

12.33
#322187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#322187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322187
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322187#FFFFFF#000000##FFFFFF
##3221871.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #322187;
/* rgb */ color: rgb(50, 33, 135);
/* oklch */ color: oklch(34.4% 0.159 281.6);
Tailwind
colors: {
  custom: {
    50: '#755eab',
    500: '#322187',
    950: '#000000',
  },
}
SCSS
$custom: #322187;
$custom-light: #755eab;
$custom-dark: #000000;
JSON
{
  "hex": "#322187",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 250,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34413,
    "c": 0.15916,
    "h": 281.6
  },
  "luminance": 0.03515
}

Semantic roles & 50–950 ramp

primary
#322187
secondary
#A5B74D
accent
#E444C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #322187

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

Preview Lab → · Contrast checker → · Palette generator →

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