#322178#322178

#322178 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.140 H 284.7°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#322178
RGBrgb(50, 33, 120)
HSLhsl(252, 57%, 30%)
HSVhsv(252, 73%, 47%)
CMYKcmyk(58.3%, 72.5%, 0%, 52.9%)
CIE-LABlab(20.52, 32.97, -46.98)
CIE-LCHlch(20.52, 57.39, 305.06°)
OKLaboklab(32.92% 0.0354 -0.1352)
OKLCHoklch(32.92% 0.14 284.7)
XYZxyz(5.2484, 3.1216, 18.0916)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322178 #677821
analogous
#213C78 #322178 #5D2178
triadic
#322178 #783221 #217832
tetradic
#322178 #78213C #677821 #21785D
square
#322178 #78213C #677821 #21785D
split-complementary
#322178 #785D21 #3C7821
monochromatic
#0A0718 #1E1448 #322178 #462EA8 #6147CC

Accessibility & contrast

On white

12.93
#322178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#322178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322178
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322178#FFFFFF#000000##FFFFFF
##3221781.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#10384A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #322178;
/* rgb */ color: rgb(50, 33, 120);
/* oklch */ color: oklch(32.9% 0.140 284.7);
Tailwind
colors: {
  custom: {
    50: '#725ea0',
    500: '#322178',
    950: '#000000',
  },
}
SCSS
$custom: #322178;
$custom-light: #725ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#322178",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 251.724,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.32917,
    "c": 0.13971,
    "h": 284.7
  },
  "luminance": 0.03122
}

Semantic roles & 50–950 ramp

primary
#322178
secondary
#98AB4A
accent
#E048C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #322178

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

Preview Lab → · Contrast checker → · Palette generator →

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