#321571#321571

#321571 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.144 H 289.2°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#321571
RGBrgb(50, 21, 113)
HSLhsl(259, 69%, 26%)
HSVhsv(259, 81%, 44%)
CMYKcmyk(55.8%, 81.4%, 0%, 55.7%)
CIE-LABlab(17.49, 37.37, -47.45)
CIE-LCHlch(17.49, 60.40, 308.22°)
OKLaboklab(30.56% 0.0474 -0.1365)
OKLCHoklch(30.56% 0.144 289.2)
XYZxyz(4.5633, 2.4065, 15.8436)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321571 #547115
analogous
#152671 #321571 #601571
triadic
#321571 #713215 #157132
tetradic
#321571 #711526 #547115 #157160
square
#321571 #711526 #547115 #157160
split-complementary
#321571 #716015 #267115
monochromatic
#0B051A #1B0B3D #321571 #491FA5 #6029D7

Accessibility & contrast

On white

14.18
#321571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#321571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321571
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321571#FFFFFF#000000##FFFFFF
##3215711.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#192F43
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321571;
/* rgb */ color: rgb(50, 21, 113);
/* oklch */ color: oklch(30.6% 0.144 289.2);
Tailwind
colors: {
  custom: {
    50: '#72569b',
    500: '#321571',
    950: '#000000',
  },
}
SCSS
$custom: #321571;
$custom-light: #72569b;
$custom-dark: #000000;
JSON
{
  "hex": "#321571",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 258.913,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30562,
    "c": 0.14448,
    "h": 289.2
  },
  "luminance": 0.02407
}

Semantic roles & 50–950 ramp

primary
#321571
secondary
#85A73B
accent
#EB3CB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321571

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

Preview Lab → · Contrast checker → · Palette generator →

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