#322478#322478

#322478 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.136 H 283.9°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#322478
RGBrgb(50, 36, 120)
HSLhsl(250, 54%, 31%)
HSVhsv(250, 70%, 47%)
CMYKcmyk(58.3%, 70%, 0%, 52.9%)
CIE-LABlab(21.19, 31.14, -45.89)
CIE-LCHlch(21.19, 55.46, 304.16°)
OKLaboklab(33.4% 0.0326 -0.132)
OKLCHoklch(33.4% 0.136 283.9)
XYZxyz(5.3354, 3.2956, 18.1206)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322478 #6A7824
analogous
#244078 #322478 #5C2478
triadic
#322478 #783224 #247832
tetradic
#322478 #782440 #6A7824 #24785C
square
#322478 #782440 #6A7824 #24785C
split-complementary
#322478 #785C24 #407824
monochromatic
#0B081A #1E1649 #322478 #4632A7 #624DCA

Accessibility & contrast

On white

12.66
#322478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#322478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322478
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322478#FFFFFF#000000##FFFFFF
##3224781.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#103A4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #322478;
/* rgb */ color: rgb(50, 36, 120);
/* oklch */ color: oklch(33.4% 0.136 283.9);
Tailwind
colors: {
  custom: {
    50: '#7260a0',
    500: '#322478',
    950: '#000000',
  },
}
SCSS
$custom: #322478;
$custom-light: #7260a0;
$custom-dark: #000000;
JSON
{
  "hex": "#322478",
  "rgb": {
    "r": 50,
    "g": 36,
    "b": 120
  },
  "hsl": {
    "h": 250,
    "s": 53.846,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33395,
    "c": 0.13593,
    "h": 283.9
  },
  "luminance": 0.03296
}

Semantic roles & 50–950 ramp

primary
#322478
secondary
#9BAB4D
accent
#DD4BC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #322478

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

Preview Lab → · Contrast checker → · Palette generator →

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