#321784#321784

#321784 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.165 H 283.9°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#321784
RGBrgb(50, 23, 132)
HSLhsl(255, 70%, 30%)
HSVhsv(255, 83%, 52%)
CMYKcmyk(62.1%, 82.6%, 0%, 48.2%)
CIE-LABlab(19.87, 42.08, -55.68)
CIE-LCHlch(19.87, 69.79, 307.08°)
OKLaboklab(32.83% 0.0397 -0.1605)
OKLCHoklch(32.83% 0.165 283.9)
XYZxyz(5.7854, 2.9565, 22.0911)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321784 #698417
analogous
#173384 #321784 #681784
triadic
#321784 #843217 #178432
tetradic
#321784 #841733 #698417 #178468
square
#321784 #841733 #698417 #178468
split-complementary
#321784 #846817 #338417
monochromatic
#0B051C #1E0E50 #321784 #4620B8 #6139DC

Accessibility & contrast

On white

13.20
#321784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321784
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321784#FFFFFF#000000##FFFFFF
##3217841.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321784;
/* rgb */ color: rgb(50, 23, 132);
/* oklch */ color: oklch(32.8% 0.165 283.9);
Tailwind
colors: {
  custom: {
    50: '#7559a9',
    500: '#321784',
    950: '#000000',
  },
}
SCSS
$custom: #321784;
$custom-light: #7559a9;
$custom-dark: #000000;
JSON
{
  "hex": "#321784",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 254.862,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32828,
    "c": 0.16535,
    "h": 283.9
  },
  "luminance": 0.02957
}

Semantic roles & 50–950 ramp

primary
#321784
secondary
#9AB83F
accent
#ED3BC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321784

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

Preview Lab → · Contrast checker → · Palette generator →

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