#321AA1#321AA1

#321AA1 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.197 H 278.3°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#321AA1
RGBrgb(50, 26, 161)
HSLhsl(251, 72%, 37%)
HSVhsv(251, 84%, 63%)
CMYKcmyk(68.9%, 83.9%, 0%, 36.9%)
CIE-LABlab(23.64, 49.33, -67.42)
CIE-LCHlch(23.64, 83.54, 306.19°)
OKLaboklab(36.4% 0.0286 -0.1947)
OKLCHoklch(36.4% 0.197 278.3)
XYZxyz(8.1157, 3.9894, 34.0536)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321AA1 #89A11A
analogous
#1A45A1 #321AA1 #761AA1
triadic
#321AA1 #A1321A #1AA132
tetradic
#321AA1 #A11A45 #89A11A #1AA176
square
#321AA1 #A11A45 #89A11A #1AA176
split-complementary
#321AA1 #A1761A #45A11A
monochromatic
#110938 #22116C #321AA1 #4223D6 #6C52E3

Accessibility & contrast

On white

11.68
#321AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#321AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321AA1
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321AA1#FFFFFF#000000##FFFFFF
##321AA11.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321aa1;
/* rgb */ color: rgb(50, 26, 161);
/* oklch */ color: oklch(36.4% 0.197 278.3);
Tailwind
colors: {
  custom: {
    50: '#7b5cbe',
    500: '#321aa1',
    950: '#000000',
  },
}
SCSS
$custom: #321aa1;
$custom-light: #7b5cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#321aa1",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 250.667,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36399,
    "c": 0.1968,
    "h": 278.3
  },
  "luminance": 0.0399
}

Semantic roles & 50–950 ramp

primary
#321AA1
secondary
#B1C651
accent
#EF39CF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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