#322271#322271

#322271 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.129 H 286.0°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#322271
RGBrgb(50, 34, 113)
HSLhsl(252, 54%, 29%)
HSVhsv(252, 70%, 44%)
CMYKcmyk(55.8%, 69.9%, 0%, 55.7%)
CIE-LABlab(20.10, 30.07, -43.18)
CIE-LCHlch(20.10, 52.61, 304.85°)
OKLaboklab(32.41% 0.0356 -0.124)
OKLCHoklch(32.41% 0.129 286)
XYZxyz(4.8672, 3.0142, 15.9449)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322271 #617122
analogous
#223A71 #322271 #5A2271
triadic
#322271 #713222 #227132
tetradic
#322271 #71223A #617122 #22715A
square
#322271 #71223A #617122 #22715A
split-complementary
#322271 #715A22 #3A7122
monochromatic
#0A0718 #1D1442 #322271 #4730A0 #6046C7

Accessibility & contrast

On white

13.10
#322271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#322271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322271
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322271#FFFFFF#000000##FFFFFF
##3222711.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#183646
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #322271;
/* rgb */ color: rgb(50, 34, 113);
/* oklch */ color: oklch(32.4% 0.129 286.0);
Tailwind
colors: {
  custom: {
    50: '#715e9b',
    500: '#322271',
    950: '#000000',
  },
}
SCSS
$custom: #322271;
$custom-light: #715e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#322271",
  "rgb": {
    "r": 50,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 252.152,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32413,
    "c": 0.12901,
    "h": 286
  },
  "luminance": 0.03014
}

Semantic roles & 50–950 ramp

primary
#322271
secondary
#92A44A
accent
#DD4BBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #322271

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

Preview Lab → · Contrast checker → · Palette generator →

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