#321C9A#321C9A

#321C9A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.187 H 279.2°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#321C9A
RGBrgb(50, 28, 154)
HSLhsl(250, 69%, 36%)
HSVhsv(250, 82%, 60%)
CMYKcmyk(67.5%, 81.8%, 0%, 39.6%)
CIE-LABlab(23.14, 46.34, -63.96)
CIE-LCHlch(23.14, 78.98, 305.92°)
OKLaboklab(35.82% 0.0299 -0.1847)
OKLCHoklch(35.82% 0.187 279.2)
XYZxyz(7.5615, 3.8411, 30.9085)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C9A #849A1C
analogous
#1C459A #321C9A #711C9A
triadic
#321C9A #9A321C #1C9A32
tetradic
#321C9A #9A1C45 #849A1C #1C9A71
square
#321C9A #9A1C45 #849A1C #1C9A71
split-complementary
#321C9A #9A711C #459A1C
monochromatic
#100932 #211366 #321C9A #4325CE #6A51DF

Accessibility & contrast

On white

11.88
#321C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#321C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C9A
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C9A#FFFFFF#000000##FFFFFF
##321C9A1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003298
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #321c9a;
/* rgb */ color: rgb(50, 28, 154);
/* oklch */ color: oklch(35.8% 0.187 279.2);
Tailwind
colors: {
  custom: {
    50: '#7a5db9',
    500: '#321c9a',
    950: '#000000',
  },
}
SCSS
$custom: #321c9a;
$custom-light: #7a5db9;
$custom-dark: #000000;
JSON
{
  "hex": "#321c9a",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 154
  },
  "hsl": {
    "h": 250.476,
    "s": 69.231,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35821,
    "c": 0.1871,
    "h": 279.2
  },
  "luminance": 0.03842
}

Semantic roles & 50–950 ramp

primary
#321C9A
secondary
#AEC250
accent
#EC3CCD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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