#321C85#321C85

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

Color values

HEX#321C85
RGBrgb(50, 28, 133)
HSLhsl(253, 65%, 32%)
HSVhsv(253, 79%, 52%)
CMYKcmyk(62.4%, 78.9%, 0%, 47.8%)
CIE-LABlab(20.83, 39.91, -54.72)
CIE-LCHlch(20.83, 67.72, 306.11°)
OKLaboklab(33.53% 0.0362 -0.1578)
OKLCHoklch(33.53% 0.162 282.9)
XYZxyz(5.9630, 3.2017, 22.4895)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C85 #6F851C
analogous
#1C3B85 #321C85 #671C85
triadic
#321C85 #85321C #1C8532
tetradic
#321C85 #851C3B #6F851C #1C8567
square
#321C85 #851C3B #6F851C #1C8567
split-complementary
#321C85 #85671C #3B851C
monochromatic
#0C0720 #1F1152 #321C85 #4527B8 #6344D8

Accessibility & contrast

On white

12.80
#321C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C85
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C85#FFFFFF#000000##FFFFFF
##321C851.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321c85;
/* rgb */ color: rgb(50, 28, 133);
/* oklch */ color: oklch(33.5% 0.162 282.9);
Tailwind
colors: {
  custom: {
    50: '#755baa',
    500: '#321c85',
    950: '#000000',
  },
}
SCSS
$custom: #321c85;
$custom-light: #755baa;
$custom-dark: #000000;
JSON
{
  "hex": "#321c85",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 133
  },
  "hsl": {
    "h": 252.571,
    "s": 65.217,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33532,
    "c": 0.16187,
    "h": 282.9
  },
  "luminance": 0.03202
}

Semantic roles & 50–950 ramp

primary
#321C85
secondary
#A0B845
accent
#E840C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321C85

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

Preview Lab → · Contrast checker → · Palette generator →

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