#321684#321684

#321684 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.166 H 284.0°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#321684
RGBrgb(50, 22, 132)
HSLhsl(255, 71%, 30%)
HSVhsv(255, 83%, 52%)
CMYKcmyk(62.1%, 83.3%, 0%, 48.2%)
CIE-LABlab(19.71, 42.54, -55.94)
CIE-LCHlch(19.71, 70.28, 307.25°)
OKLaboklab(32.72% 0.0403 -0.1613)
OKLCHoklch(32.72% 0.166 284)
XYZxyz(5.7659, 2.9175, 22.0846)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321684 #688416
analogous
#163184 #321684 #691684
triadic
#321684 #843216 #168432
tetradic
#321684 #841631 #688416 #168469
square
#321684 #841631 #688416 #168469
split-complementary
#321684 #846916 #318416
monochromatic
#0A051B #1E0D50 #321684 #461FB8 #6137DE

Accessibility & contrast

On white

13.26
#321684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#321684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321684
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321684#FFFFFF#000000##FFFFFF
##3216841.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.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: #321684;
/* rgb */ color: rgb(50, 22, 132);
/* oklch */ color: oklch(32.7% 0.166 284.0);
Tailwind
colors: {
  custom: {
    50: '#7658a9',
    500: '#321684',
    950: '#000000',
  },
}
SCSS
$custom: #321684;
$custom-light: #7658a9;
$custom-dark: #000000;
JSON
{
  "hex": "#321684",
  "rgb": {
    "r": 50,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 255.273,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32718,
    "c": 0.16622,
    "h": 284
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#321684
secondary
#99B83D
accent
#EE3AC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321684

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

Preview Lab → · Contrast checker → · Palette generator →

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