#321C9C#321C9C

#321C9C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.189 H 278.9°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#321C9C
RGBrgb(50, 28, 156)
HSLhsl(250, 70%, 36%)
HSVhsv(250, 82%, 61%)
CMYKcmyk(67.9%, 82.1%, 0%, 38.8%)
CIE-LABlab(23.37, 46.94, -64.81)
CIE-LCHlch(23.37, 80.03, 305.92°)
OKLaboklab(36.04% 0.0293 -0.1872)
OKLCHoklch(36.04% 0.189 278.9)
XYZxyz(7.7295, 3.9083, 31.7931)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C9C #869C1C
analogous
#1C469C #321C9C #721C9C
triadic
#321C9C #9C321C #1C9C32
tetradic
#321C9C #9C1C46 #869C1C #1C9C72
square
#321C9C #9C1C46 #869C1C #1C9C72
split-complementary
#321C9C #9C721C #469C1C
monochromatic
#110934 #211368 #321C9C #4325D0 #6B52E0

Accessibility & contrast

On white

11.79
#321C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#321C9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C9C
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C9C#FFFFFF#000000##FFFFFF
##321C9C1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #321c9c;
/* rgb */ color: rgb(50, 28, 156);
/* oklch */ color: oklch(36.0% 0.189 278.9);
Tailwind
colors: {
  custom: {
    50: '#7a5dbb',
    500: '#321c9c',
    950: '#000000',
  },
}
SCSS
$custom: #321c9c;
$custom-light: #7a5dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#321c9c",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 156
  },
  "hsl": {
    "h": 250.313,
    "s": 69.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36044,
    "c": 0.18946,
    "h": 278.9
  },
  "luminance": 0.03909
}

Semantic roles & 50–950 ramp

primary
#321C9C
secondary
#AFC351
accent
#EC3BCE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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