#321980#321980

#321980 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.159 H 284.5°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#321980
RGBrgb(50, 25, 128)
HSLhsl(255, 67%, 30%)
HSVhsv(255, 80%, 50%)
CMYKcmyk(60.9%, 80.5%, 0%, 49.8%)
CIE-LABlab(19.77, 39.90, -53.32)
CIE-LCHlch(19.77, 66.59, 306.81°)
OKLaboklab(32.63% 0.0397 -0.1536)
OKLCHoklch(32.63% 0.159 284.5)
XYZxyz(5.5581, 2.9315, 20.6908)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321980 #678019
analogous
#193480 #321980 #651980
triadic
#321980 #803219 #198032
tetradic
#321980 #801934 #678019 #198065
square
#321980 #801934 #678019 #198065
split-complementary
#321980 #806519 #348019
monochromatic
#0A051A #1E0F4D #321980 #4623B3 #613BD9

Accessibility & contrast

On white

13.24
#321980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321980
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321980#FFFFFF#000000##FFFFFF
##3219801.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#02374C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321980;
/* rgb */ color: rgb(50, 25, 128);
/* oklch */ color: oklch(32.6% 0.159 284.5);
Tailwind
colors: {
  custom: {
    50: '#7559a6',
    500: '#321980',
    950: '#000000',
  },
}
SCSS
$custom: #321980;
$custom-light: #7559a6;
$custom-dark: #000000;
JSON
{
  "hex": "#321980",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 254.563,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.32628,
    "c": 0.1587,
    "h": 284.5
  },
  "luminance": 0.02932
}

Semantic roles & 50–950 ramp

primary
#321980
secondary
#98B441
accent
#EA3EC0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321980

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

Preview Lab → · Contrast checker → · Palette generator →

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