#321580#321580

#321580 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.162 H 285.1°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#321580
RGBrgb(50, 21, 128)
HSLhsl(256, 72%, 29%)
HSVhsv(256, 84%, 50%)
CMYKcmyk(60.9%, 83.6%, 0%, 49.8%)
CIE-LABlab(19.11, 41.81, -54.40)
CIE-LCHlch(19.11, 68.61, 307.55°)
OKLaboklab(32.17% 0.0423 -0.1568)
OKLCHoklch(32.17% 0.162 285.1)
XYZxyz(5.4787, 2.7726, 20.6644)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321580 #638015
analogous
#152D80 #321580 #681580
triadic
#321580 #803215 #158032
tetradic
#321580 #80152D #638015 #158068
square
#321580 #80152D #638015 #158068
split-complementary
#321580 #806815 #2D8015
monochromatic
#0A041A #1D0C4B #321580 #471EB5 #6032DD

Accessibility & contrast

On white

13.51
#321580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#321580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321580
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321580#FFFFFF#000000##FFFFFF
##3215801.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#03364B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321580;
/* rgb */ color: rgb(50, 21, 128);
/* oklch */ color: oklch(32.2% 0.162 285.1);
Tailwind
colors: {
  custom: {
    50: '#7557a6',
    500: '#321580',
    950: '#000000',
  },
}
SCSS
$custom: #321580;
$custom-light: #7557a6;
$custom-dark: #000000;
JSON
{
  "hex": "#321580",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 256.262,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32171,
    "c": 0.16237,
    "h": 285.1
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

primary
#321580
secondary
#94B53C
accent
#EF39BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #321580

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

Preview Lab → · Contrast checker → · Palette generator →

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