#321A82#321A82

#321A82 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.160 H 283.9°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#321A82
RGBrgb(50, 26, 130)
HSLhsl(254, 67%, 31%)
HSVhsv(254, 80%, 51%)
CMYKcmyk(61.5%, 80%, 0%, 49%)
CIE-LABlab(20.16, 40.01, -53.94)
CIE-LCHlch(20.16, 67.16, 306.57°)
OKLaboklab(32.96% 0.0385 -0.1555)
OKLCHoklch(32.96% 0.16 283.9)
XYZxyz(5.7128, 3.0282, 21.3982)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A82 #6A821A
analogous
#1A3682 #321A82 #661A82
triadic
#321A82 #82321A #1A8232
tetradic
#321A82 #821A36 #6A821A #1A8266
square
#321A82 #821A36 #6A821A #1A8266
split-complementary
#321A82 #82661A #36821A
monochromatic
#0B061C #1E104F #321A82 #4624B5 #623ED8

Accessibility & contrast

On white

13.08
#321A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#321A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A82
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A82#FFFFFF#000000##FFFFFF
##321A821.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321a82;
/* rgb */ color: rgb(50, 26, 130);
/* oklch */ color: oklch(33.0% 0.160 283.9);
Tailwind
colors: {
  custom: {
    50: '#755aa7',
    500: '#321a82',
    950: '#000000',
  },
}
SCSS
$custom: #321a82;
$custom-light: #755aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#321a82",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 253.846,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32963,
    "c": 0.16016,
    "h": 283.9
  },
  "luminance": 0.03029
}

Semantic roles & 50–950 ramp

primary
#321A82
secondary
#9BB642
accent
#EA3EC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321A82

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

Preview Lab → · Contrast checker → · Palette generator →

#321A82 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva