#321A86#321A86

#321A86 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.165 H 283.0°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#321A86
RGBrgb(50, 26, 134)
HSLhsl(253, 68%, 31%)
HSVhsv(253, 81%, 53%)
CMYKcmyk(62.7%, 80.6%, 0%, 47.5%)
CIE-LABlab(20.59, 41.23, -55.75)
CIE-LCHlch(20.59, 69.34, 306.49°)
OKLaboklab(33.39% 0.0372 -0.1608)
OKLCHoklch(33.39% 0.165 283)
XYZxyz(5.9865, 3.1377, 22.8398)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A86 #6E861A
analogous
#1A3886 #321A86 #681A86
triadic
#321A86 #86321A #1A8632
tetradic
#321A86 #861A38 #6E861A #1A8668
square
#321A86 #861A38 #6E861A #1A8668
split-complementary
#321A86 #86681A #38861A
monochromatic
#0C061F #1F1053 #321A86 #4524B9 #6340DA

Accessibility & contrast

On white

12.90
#321A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#321A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A86
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A86#FFFFFF#000000##FFFFFF
##321A861.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321a86;
/* rgb */ color: rgb(50, 26, 134);
/* oklch */ color: oklch(33.4% 0.165 283.0);
Tailwind
colors: {
  custom: {
    50: '#765aaa',
    500: '#321a86',
    950: '#000000',
  },
}
SCSS
$custom: #321a86;
$custom-light: #765aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#321a86",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 253.333,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33392,
    "c": 0.16502,
    "h": 283
  },
  "luminance": 0.03138
}

Semantic roles & 50–950 ramp

primary
#321A86
secondary
#9FB942
accent
#EA3DC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321A86

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

Preview Lab → · Contrast checker → · Palette generator →

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