#321E82#321E82

#321E82 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.156 H 283.2°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#321E82
RGBrgb(50, 30, 130)
HSLhsl(252, 63%, 31%)
HSVhsv(252, 77%, 51%)
CMYKcmyk(61.5%, 76.9%, 0%, 49%)
CIE-LABlab(20.90, 37.90, -52.72)
CIE-LCHlch(20.90, 64.93, 305.71°)
OKLaboklab(33.48% 0.0356 -0.152)
OKLCHoklch(33.48% 0.156 283.2)
XYZxyz(5.8077, 3.2180, 21.4299)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E82 #6E821E
analogous
#1E3C82 #321E82 #641E82
triadic
#321E82 #82321E #1E8232
tetradic
#321E82 #821E3C #6E821E #1E8264
square
#321E82 #821E3C #6E821E #1E8264
split-complementary
#321E82 #82641E #3C821E
monochromatic
#0C071F #1F1350 #321E82 #4529B4 #6346D4

Accessibility & contrast

On white

12.78
#321E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#321E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E82
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E82#FFFFFF#000000##FFFFFF
##321E821.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321e82;
/* rgb */ color: rgb(50, 30, 130);
/* oklch */ color: oklch(33.5% 0.156 283.2);
Tailwind
colors: {
  custom: {
    50: '#755ca7',
    500: '#321e82',
    950: '#000000',
  },
}
SCSS
$custom: #321e82;
$custom-light: #755ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#321e82",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 252,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33482,
    "c": 0.15607,
    "h": 283.2
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#321E82
secondary
#9FB547
accent
#E642C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321E82

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

Preview Lab → · Contrast checker → · Palette generator →

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