#321E83#321E83

#321E83 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.157 H 283.0°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#321E83
RGBrgb(50, 30, 131)
HSLhsl(252, 63%, 32%)
HSVhsv(252, 77%, 51%)
CMYKcmyk(61.8%, 77.1%, 0%, 48.6%)
CIE-LABlab(21.00, 38.21, -53.18)
CIE-LCHlch(21.00, 65.49, 305.70°)
OKLaboklab(33.59% 0.0353 -0.1533)
OKLCHoklch(33.59% 0.157 283)
XYZxyz(5.8751, 3.2450, 21.7851)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E83 #6F831E
analogous
#1E3D83 #321E83 #651E83
triadic
#321E83 #83321E #1E8332
tetradic
#321E83 #831E3D #6F831E #1E8365
square
#321E83 #831E3D #6F831E #1E8365
split-complementary
#321E83 #83651E #3D831E
monochromatic
#0C071F #1F1351 #321E83 #4529B5 #6347D5

Accessibility & contrast

On white

12.73
#321E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#321E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E83
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E83#FFFFFF#000000##FFFFFF
##321E831.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321e83;
/* rgb */ color: rgb(50, 30, 131);
/* oklch */ color: oklch(33.6% 0.157 283.0);
Tailwind
colors: {
  custom: {
    50: '#755ca8',
    500: '#321e83',
    950: '#000000',
  },
}
SCSS
$custom: #321e83;
$custom-light: #755ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#321e83",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 131
  },
  "hsl": {
    "h": 251.881,
    "s": 62.733,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33586,
    "c": 0.15733,
    "h": 283
  },
  "luminance": 0.03245
}

Semantic roles & 50–950 ramp

primary
#321E83
secondary
#A0B647
accent
#E642C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321E83

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

Preview Lab → · Contrast checker → · Palette generator →

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