#321A85#321A85

#321A85 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.164 H 283.2°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#321A85
RGBrgb(50, 26, 133)
HSLhsl(253, 67%, 31%)
HSVhsv(253, 80%, 52%)
CMYKcmyk(62.4%, 80.5%, 0%, 47.8%)
CIE-LABlab(20.48, 40.93, -55.30)
CIE-LCHlch(20.48, 68.80, 306.50°)
OKLaboklab(33.28% 0.0375 -0.1594)
OKLCHoklch(33.28% 0.164 283.2)
XYZxyz(5.9171, 3.1100, 22.4742)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A85 #6D851A
analogous
#1A3785 #321A85 #671A85
triadic
#321A85 #85321A #1A8532
tetradic
#321A85 #851A37 #6D851A #1A8567
square
#321A85 #851A37 #6D851A #1A8567
split-complementary
#321A85 #85671A #37851A
monochromatic
#0C061F #1F1052 #321A85 #4524B8 #6240DA

Accessibility & contrast

On white

12.95
#321A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#321A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A85
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A85#FFFFFF#000000##FFFFFF
##321A851.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321a85;
/* rgb */ color: rgb(50, 26, 133);
/* oklch */ color: oklch(33.3% 0.164 283.2);
Tailwind
colors: {
  custom: {
    50: '#755aaa',
    500: '#321a85',
    950: '#000000',
  },
}
SCSS
$custom: #321a85;
$custom-light: #755aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#321a85",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 253.458,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33284,
    "c": 0.16381,
    "h": 283.2
  },
  "luminance": 0.0311
}

Semantic roles & 50–950 ramp

primary
#321A85
secondary
#9EB842
accent
#EA3EC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321A85

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

Preview Lab → · Contrast checker → · Palette generator →

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