#321A81#321A81

#321A81 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.159 H 284.1°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#321A81
RGBrgb(50, 26, 129)
HSLhsl(254, 66%, 30%)
HSVhsv(254, 80%, 51%)
CMYKcmyk(61.2%, 79.8%, 0%, 49.4%)
CIE-LABlab(20.05, 39.70, -53.48)
CIE-LCHlch(20.05, 66.61, 306.59°)
OKLaboklab(32.86% 0.0388 -0.1541)
OKLCHoklch(32.86% 0.159 284.1)
XYZxyz(5.6460, 3.0015, 21.0465)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A81 #69811A
analogous
#1A3581 #321A81 #661A81
triadic
#321A81 #81321A #1A8132
tetradic
#321A81 #811A35 #69811A #1A8166
square
#321A81 #811A35 #69811A #1A8166
split-complementary
#321A81 #81661A #35811A
monochromatic
#0B051B #1E104E #321A81 #4624B4 #613DD8

Accessibility & contrast

On white

13.12
#321A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#321A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A81
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A81#FFFFFF#000000##FFFFFF
##321A811.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321a81;
/* rgb */ color: rgb(50, 26, 129);
/* oklch */ color: oklch(32.9% 0.159 284.1);
Tailwind
colors: {
  custom: {
    50: '#755aa7',
    500: '#321a81',
    950: '#000000',
  },
}
SCSS
$custom: #321a81;
$custom-light: #755aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#321a81",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 129
  },
  "hsl": {
    "h": 253.981,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32857,
    "c": 0.15895,
    "h": 284.1
  },
  "luminance": 0.03002
}

Semantic roles & 50–950 ramp

primary
#321A81
secondary
#9AB542
accent
#E93EC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321A81

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

Preview Lab → · Contrast checker → · Palette generator →

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