#322170#322170

#322170 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.129 H 286.6°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#322170
RGBrgb(50, 33, 112)
HSLhsl(253, 54%, 28%)
HSVhsv(253, 71%, 44%)
CMYKcmyk(55.4%, 70.5%, 0%, 56.1%)
CIE-LABlab(19.78, 30.36, -43.05)
CIE-LCHlch(19.78, 52.68, 305.19°)
OKLaboklab(32.16% 0.0368 -0.1236)
OKLCHoklch(32.16% 0.129 286.6)
XYZxyz(4.7830, 2.9354, 15.6407)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322170 #5F7021
analogous
#213770 #322170 #592170
triadic
#322170 #703221 #217032
tetradic
#322170 #702137 #5F7021 #217059
square
#322170 #702137 #5F7021 #217059
split-complementary
#322170 #705921 #377021
monochromatic
#0B0718 #1D1341 #322170 #472F9F #6044C8

Accessibility & contrast

On white

13.23
#322170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #322170
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322170#FFFFFF#000000##FFFFFF
##3221701.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#193545
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #322170;
/* rgb */ color: rgb(50, 33, 112);
/* oklch */ color: oklch(32.2% 0.129 286.6);
Tailwind
colors: {
  custom: {
    50: '#715d9a',
    500: '#322170',
    950: '#000000',
  },
}
SCSS
$custom: #322170;
$custom-light: #715d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#322170",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 252.911,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32157,
    "c": 0.12899,
    "h": 286.6
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#322170
secondary
#90A449
accent
#DE4ABE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #322170

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

Preview Lab → · Contrast checker → · Palette generator →

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