#321B9C#321B9C

#321B9C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.190 H 279.0°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#321B9C
RGBrgb(50, 27, 156)
HSLhsl(251, 70%, 36%)
HSVhsv(251, 83%, 61%)
CMYKcmyk(67.9%, 82.7%, 0%, 38.8%)
CIE-LABlab(23.21, 47.40, -65.07)
CIE-LCHlch(23.21, 80.51, 306.07°)
OKLaboklab(35.94% 0.0297 -0.1879)
OKLCHoklch(35.94% 0.19 279)
XYZxyz(7.7062, 3.8616, 31.7853)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B9C #859C1B
analogous
#1B449C #321B9C #721B9C
triadic
#321B9C #9C321B #1B9C32
tetradic
#321B9C #9C1B44 #859C1B #1B9C72
square
#321B9C #9C1B44 #859C1B #1B9C72
split-complementary
#321B9C #9C721B #449C1B
monochromatic
#110934 #211268 #321B9C #4324D0 #6A51E1

Accessibility & contrast

On white

11.85
#321B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B9C
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B9C#FFFFFF#000000##FFFFFF
##321B9C1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9F
Deuteranopia (green-blind)
#00329A
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #321b9c;
/* rgb */ color: rgb(50, 27, 156);
/* oklch */ color: oklch(35.9% 0.190 279.0);
Tailwind
colors: {
  custom: {
    50: '#7a5cbb',
    500: '#321b9c',
    950: '#000000',
  },
}
SCSS
$custom: #321b9c;
$custom-light: #7a5cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#321b9c",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 156
  },
  "hsl": {
    "h": 250.698,
    "s": 70.492,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35936,
    "c": 0.19026,
    "h": 279
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#321B9C
secondary
#AFC34F
accent
#ED3BCD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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