#321AA0#321AA0

#321AA0 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.196 H 278.5°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#321AA0
RGBrgb(50, 26, 160)
HSLhsl(251, 72%, 36%)
HSVhsv(251, 84%, 63%)
CMYKcmyk(68.8%, 83.8%, 0%, 37.3%)
CIE-LABlab(23.52, 49.03, -67.00)
CIE-LCHlch(23.52, 83.03, 306.20°)
OKLaboklab(36.29% 0.0289 -0.1935)
OKLCHoklch(36.29% 0.196 278.5)
XYZxyz(8.0279, 3.9543, 33.5911)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321AA0 #88A01A
analogous
#1A45A0 #321AA0 #751AA0
triadic
#321AA0 #A0321A #1AA032
tetradic
#321AA0 #A01A45 #88A01A #1AA075
square
#321AA0 #A01A45 #88A01A #1AA075
split-complementary
#321AA0 #A0751A #45A01A
monochromatic
#110937 #22116B #321AA0 #4223D5 #6C52E3

Accessibility & contrast

On white

11.73
#321AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#321AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321AA0
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321AA0#FFFFFF#000000##FFFFFF
##321AA01.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#00339E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #321aa0;
/* rgb */ color: rgb(50, 26, 160);
/* oklch */ color: oklch(36.3% 0.196 278.5);
Tailwind
colors: {
  custom: {
    50: '#7b5cbd',
    500: '#321aa0',
    950: '#000000',
  },
}
SCSS
$custom: #321aa0;
$custom-light: #7b5cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#321aa0",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 160
  },
  "hsl": {
    "h": 250.746,
    "s": 72.043,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36285,
    "c": 0.19565,
    "h": 278.5
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

primary
#321AA0
secondary
#B0C550
accent
#EF39CE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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