#321C82#321C82

#321C82 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.158 H 283.6°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#321C82
RGBrgb(50, 28, 130)
HSLhsl(253, 65%, 31%)
HSVhsv(253, 78%, 51%)
CMYKcmyk(61.5%, 78.5%, 0%, 49%)
CIE-LABlab(20.52, 38.98, -53.35)
CIE-LCHlch(20.52, 66.07, 306.15°)
OKLaboklab(33.22% 0.0371 -0.1538)
OKLCHoklch(33.22% 0.158 283.6)
XYZxyz(5.7587, 3.1199, 21.4135)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C82 #6C821C
analogous
#1C3982 #321C82 #651C82
triadic
#321C82 #82321C #1C8232
tetradic
#321C82 #821C39 #6C821C #1C8265
square
#321C82 #821C39 #6C821C #1C8265
split-complementary
#321C82 #82651C #39821C
monochromatic
#0B061D #1F1150 #321C82 #4527B4 #6242D6

Accessibility & contrast

On white

12.93
#321C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C82
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C82#FFFFFF#000000##FFFFFF
##321C821.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321c82;
/* rgb */ color: rgb(50, 28, 130);
/* oklch */ color: oklch(33.2% 0.158 283.6);
Tailwind
colors: {
  custom: {
    50: '#755ba7',
    500: '#321c82',
    950: '#000000',
  },
}
SCSS
$custom: #321c82;
$custom-light: #755ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#321c82",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 252.941,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33216,
    "c": 0.15816,
    "h": 283.6
  },
  "luminance": 0.0312
}

Semantic roles & 50–950 ramp

primary
#321C82
secondary
#9DB544
accent
#E840C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321C82

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

Preview Lab → · Contrast checker → · Palette generator →

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