#322171#322171

#322171 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.3% C 0.130 H 286.3°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#322171
RGBrgb(50, 33, 113)
HSLhsl(253, 55%, 29%)
HSVhsv(253, 71%, 44%)
CMYKcmyk(55.8%, 70.8%, 0%, 55.7%)
CIE-LABlab(19.87, 30.68, -43.55)
CIE-LCHlch(19.87, 53.27, 305.17°)
OKLaboklab(32.25% 0.0366 -0.1251)
OKLCHoklch(32.25% 0.13 286.3)
XYZxyz(4.8390, 2.9578, 15.9355)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322171 #607121
analogous
#213871 #322171 #5A2171
triadic
#322171 #713221 #217132
tetradic
#322171 #712138 #607121 #21715A
square
#322171 #712138 #607121 #21715A
split-complementary
#322171 #715A21 #387121
monochromatic
#0A0718 #1D1342 #322171 #472FA0 #6044C8

Accessibility & contrast

On white

13.19
#322171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#322171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322171
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322171#FFFFFF#000000##FFFFFF
##3221711.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#183546
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #322171;
/* rgb */ color: rgb(50, 33, 113);
/* oklch */ color: oklch(32.3% 0.130 286.3);
Tailwind
colors: {
  custom: {
    50: '#715e9b',
    500: '#322171',
    950: '#000000',
  },
}
SCSS
$custom: #322171;
$custom-light: #715e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#322171",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 252.75,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32251,
    "c": 0.13035,
    "h": 286.3
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#322171
secondary
#91A549
accent
#DE4ABF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #322171

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

Preview Lab → · Contrast checker → · Palette generator →

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