#321D83#321D83

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

Color values

HEX#321D83
RGBrgb(50, 29, 131)
HSLhsl(252, 64%, 31%)
HSVhsv(252, 78%, 51%)
CMYKcmyk(61.8%, 77.9%, 0%, 48.6%)
CIE-LABlab(20.81, 38.76, -53.50)
CIE-LCHlch(20.81, 66.06, 305.92°)
OKLaboklab(33.45% 0.0361 -0.1542)
OKLCHoklch(33.45% 0.158 283.2)
XYZxyz(5.8502, 3.1951, 21.7768)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D83 #6E831D
analogous
#1D3B83 #321D83 #651D83
triadic
#321D83 #83321D #1D8332
tetradic
#321D83 #831D3B #6E831D #1D8365
square
#321D83 #831D3B #6E831D #1D8365
split-complementary
#321D83 #83651D #3B831D
monochromatic
#0C071F #1F1251 #321D83 #4528B5 #6345D6

Accessibility & contrast

On white

12.81
#321D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D83
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D83#FFFFFF#000000##FFFFFF
##321D831.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321d83;
/* rgb */ color: rgb(50, 29, 131);
/* oklch */ color: oklch(33.5% 0.158 283.2);
Tailwind
colors: {
  custom: {
    50: '#755ca8',
    500: '#321d83',
    950: '#000000',
  },
}
SCSS
$custom: #321d83;
$custom-light: #755ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#321d83",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 252.353,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33452,
    "c": 0.15837,
    "h": 283.2
  },
  "luminance": 0.03196
}

Semantic roles & 50–950 ramp

primary
#321D83
secondary
#9FB646
accent
#E741C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321D83

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

Preview Lab → · Contrast checker → · Palette generator →

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