#321E8D#321E8D

#321E8D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.170 H 281.1°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#321E8D
RGBrgb(50, 30, 141)
HSLhsl(251, 65%, 34%)
HSVhsv(251, 79%, 55%)
CMYKcmyk(64.5%, 78.7%, 0%, 44.7%)
CIE-LABlab(22.05, 41.36, -57.72)
CIE-LCHlch(22.05, 71.01, 305.62°)
OKLaboklab(34.64% 0.0326 -0.1666)
OKLCHoklch(34.64% 0.17 281.1)
XYZxyz(6.5859, 3.5292, 25.5283)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E8D #798D1E
analogous
#1E418D #321E8D #691E8D
triadic
#321E8D #8D321E #1E8D32
tetradic
#321E8D #8D1E41 #798D1E #1E8D69
square
#321E8D #8D1E41 #798D1E #1E8D69
split-complementary
#321E8D #8D691E #418D1E
monochromatic
#0E0928 #20135B #321E8D #4429BF #664CD9

Accessibility & contrast

On white

12.31
#321E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#321E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E8D
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E8D#FFFFFF#000000##FFFFFF
##321E8D1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #321e8d;
/* rgb */ color: rgb(50, 30, 141);
/* oklch */ color: oklch(34.6% 0.170 281.1);
Tailwind
colors: {
  custom: {
    50: '#775daf',
    500: '#321e8d',
    950: '#000000',
  },
}
SCSS
$custom: #321e8d;
$custom-light: #775daf;
$custom-dark: #000000;
JSON
{
  "hex": "#321e8d",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 250.811,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34638,
    "c": 0.16972,
    "h": 281.1
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#321E8D
secondary
#A7BC4B
accent
#E840CA
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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