#321581#321581

#321581 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.164 H 284.9°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#321581
RGBrgb(50, 21, 129)
HSLhsl(256, 72%, 29%)
HSVhsv(256, 84%, 51%)
CMYKcmyk(61.2%, 83.7%, 0%, 49.4%)
CIE-LABlab(19.22, 42.11, -54.85)
CIE-LCHlch(19.22, 69.15, 307.51°)
OKLaboklab(32.28% 0.042 -0.1581)
OKLCHoklch(32.28% 0.164 284.9)
XYZxyz(5.5448, 2.7991, 21.0127)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321581 #648115
analogous
#152E81 #321581 #681581
triadic
#321581 #813215 #158132
tetradic
#321581 #81152E #648115 #158168
square
#321581 #81152E #648115 #158168
split-complementary
#321581 #816815 #2E8115
monochromatic
#0A041A #1E0C4C #321581 #461EB6 #6133DE

Accessibility & contrast

On white

13.46
#321581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#321581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321581
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321581#FFFFFF#000000##FFFFFF
##3215811.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#01364C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321581;
/* rgb */ color: rgb(50, 21, 129);
/* oklch */ color: oklch(32.3% 0.164 284.9);
Tailwind
colors: {
  custom: {
    50: '#7558a7',
    500: '#321581',
    950: '#000000',
  },
}
SCSS
$custom: #321581;
$custom-light: #7558a7;
$custom-dark: #000000;
JSON
{
  "hex": "#321581",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 256.111,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32281,
    "c": 0.16356,
    "h": 284.9
  },
  "luminance": 0.02799
}

Semantic roles & 50–950 ramp

primary
#321581
secondary
#95B63C
accent
#EF39BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #321581

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

Preview Lab → · Contrast checker → · Palette generator →

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