#322174#322174

#322174 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.134 H 285.6°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#322174
RGBrgb(50, 33, 116)
HSLhsl(252, 56%, 29%)
HSVhsv(252, 72%, 45%)
CMYKcmyk(56.9%, 71.6%, 0%, 54.5%)
CIE-LABlab(20.15, 31.66, -45.03)
CIE-LCHlch(20.15, 55.05, 305.11°)
OKLaboklab(32.53% 0.0361 -0.1294)
OKLCHoklch(32.53% 0.134 285.6)
XYZxyz(5.0107, 3.0265, 16.8398)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322174 #637421
analogous
#213A74 #322174 #5C2174
triadic
#322174 #743221 #217432
tetradic
#322174 #74213A #637421 #21745C
square
#322174 #74213A #637421 #21745C
split-complementary
#322174 #745C21 #3A7421
monochromatic
#0A0718 #1D1344 #322174 #472FA4 #6045CA

Accessibility & contrast

On white

13.08
#322174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#322174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322174
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322174#FFFFFF#000000##FFFFFF
##3221741.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#153647
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #322174;
/* rgb */ color: rgb(50, 33, 116);
/* oklch */ color: oklch(32.5% 0.134 285.6);
Tailwind
colors: {
  custom: {
    50: '#725e9d',
    500: '#322174',
    950: '#000000',
  },
}
SCSS
$custom: #322174;
$custom-light: #725e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#322174",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 252.289,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32534,
    "c": 0.13439,
    "h": 285.6
  },
  "luminance": 0.03027
}

Semantic roles & 50–950 ramp

primary
#322174
secondary
#94A749
accent
#DF49C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #322174

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

Preview Lab → · Contrast checker → · Palette generator →

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