#321C99#321C99

#321C99 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.186 H 279.3°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#321C99
RGBrgb(50, 28, 153)
HSLhsl(251, 69%, 35%)
HSVhsv(251, 82%, 60%)
CMYKcmyk(67.3%, 81.7%, 0%, 40%)
CIE-LABlab(23.03, 46.04, -63.53)
CIE-LCHlch(23.03, 78.46, 305.93°)
OKLaboklab(35.71% 0.0302 -0.1835)
OKLCHoklch(35.71% 0.186 279.3)
XYZxyz(7.4786, 3.8079, 30.4717)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C99 #83991C
analogous
#1C4499 #321C99 #701C99
triadic
#321C99 #99321C #1C9932
tetradic
#321C99 #991C44 #83991C #1C9970
square
#321C99 #991C44 #83991C #1C9970
split-complementary
#321C99 #99701C #44991C
monochromatic
#100932 #211365 #321C99 #4325CD #6950DF

Accessibility & contrast

On white

11.92
#321C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#321C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C99
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C99#FFFFFF#000000##FFFFFF
##321C991.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #321c99;
/* rgb */ color: rgb(50, 28, 153);
/* oklch */ color: oklch(35.7% 0.186 279.3);
Tailwind
colors: {
  custom: {
    50: '#795db8',
    500: '#321c99',
    950: '#000000',
  },
}
SCSS
$custom: #321c99;
$custom-light: #795db8;
$custom-dark: #000000;
JSON
{
  "hex": "#321c99",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 250.56,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35709,
    "c": 0.18593,
    "h": 279.3
  },
  "luminance": 0.03809
}

Semantic roles & 50–950 ramp

primary
#321C99
secondary
#AEC24F
accent
#EC3CCD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #321C99

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

Preview Lab → · Contrast checker → · Palette generator →

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