#322181#322181

#322181 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.151 H 282.8°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#322181
RGBrgb(50, 33, 129)
HSLhsl(251, 59%, 32%)
HSVhsv(251, 74%, 51%)
CMYKcmyk(61.2%, 74.4%, 0%, 49.4%)
CIE-LABlab(21.40, 35.89, -51.27)
CIE-LCHlch(21.40, 62.58, 304.99°)
OKLaboklab(33.81% 0.0335 -0.1477)
OKLCHoklch(33.81% 0.151 282.8)
XYZxyz(5.8205, 3.3504, 21.1046)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322181 #708121
analogous
#214081 #322181 #622181
triadic
#322181 #813221 #218132
tetradic
#322181 #812140 #708121 #218162
square
#322181 #812140 #708121 #218162
split-complementary
#322181 #816221 #408121
monochromatic
#0C0820 #1F1550 #322181 #452DB2 #634BD1

Accessibility & contrast

On white

12.57
#322181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#322181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322181
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322181#FFFFFF#000000##FFFFFF
##3221811.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #322181;
/* rgb */ color: rgb(50, 33, 129);
/* oklch */ color: oklch(33.8% 0.151 282.8);
Tailwind
colors: {
  custom: {
    50: '#745ea7',
    500: '#322181',
    950: '#000000',
  },
}
SCSS
$custom: #322181;
$custom-light: #745ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#322181",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 250.625,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33805,
    "c": 0.15148,
    "h": 282.8
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

primary
#322181
secondary
#A1B44A
accent
#E245C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #322181

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

Preview Lab → · Contrast checker → · Palette generator →

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