#321884#321884

#321884 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.164 H 283.8°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#321884
RGBrgb(50, 24, 132)
HSLhsl(254, 69%, 31%)
HSVhsv(254, 82%, 52%)
CMYKcmyk(62.1%, 81.8%, 0%, 48.2%)
CIE-LABlab(20.03, 41.60, -55.41)
CIE-LCHlch(20.03, 69.29, 306.90°)
OKLaboklab(32.94% 0.0391 -0.1597)
OKLCHoklch(32.94% 0.164 283.8)
XYZxyz(5.8056, 2.9969, 22.0979)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321884 #6A8418
analogous
#183484 #321884 #681884
triadic
#321884 #843218 #188432
tetradic
#321884 #841834 #6A8418 #188468
square
#321884 #841834 #6A8418 #188468
split-complementary
#321884 #846818 #348418
monochromatic
#0B051C #1E0F50 #321884 #4621B8 #623BDB

Accessibility & contrast

On white

13.13
#321884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321884
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321884#FFFFFF#000000##FFFFFF
##3218841.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321884;
/* rgb */ color: rgb(50, 24, 132);
/* oklch */ color: oklch(32.9% 0.164 283.8);
Tailwind
colors: {
  custom: {
    50: '#7559a9',
    500: '#321884',
    950: '#000000',
  },
}
SCSS
$custom: #321884;
$custom-light: #7559a9;
$custom-dark: #000000;
JSON
{
  "hex": "#321884",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 254.444,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32941,
    "c": 0.16446,
    "h": 283.8
  },
  "luminance": 0.02997
}

Semantic roles & 50–950 ramp

primary
#321884
secondary
#9BB840
accent
#EC3CC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321884

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

Preview Lab → · Contrast checker → · Palette generator →

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