#321B99#321B99

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

Color values

HEX#321B99
RGBrgb(50, 27, 153)
HSLhsl(251, 70%, 35%)
HSVhsv(251, 82%, 60%)
CMYKcmyk(67.3%, 82.4%, 0%, 40%)
CIE-LABlab(22.87, 46.51, -63.80)
CIE-LCHlch(22.87, 78.95, 306.09°)
OKLaboklab(35.6% 0.0307 -0.1842)
OKLCHoklch(35.6% 0.187 279.5)
XYZxyz(7.4553, 3.7613, 30.4639)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B99 #82991B
analogous
#1B4399 #321B99 #711B99
triadic
#321B99 #99321B #1B9932
tetradic
#321B99 #991B43 #82991B #1B9971
square
#321B99 #991B43 #82991B #1B9971
split-complementary
#321B99 #99711B #43991B
monochromatic
#100931 #211265 #321B99 #4324CD #694FE0

Accessibility & contrast

On white

11.98
#321B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#321B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B99
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B99#FFFFFF#000000##FFFFFF
##321B991.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321b99;
/* rgb */ color: rgb(50, 27, 153);
/* oklch */ color: oklch(35.6% 0.187 279.5);
Tailwind
colors: {
  custom: {
    50: '#7a5cb8',
    500: '#321b99',
    950: '#000000',
  },
}
SCSS
$custom: #321b99;
$custom-light: #7a5cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#321b99",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 153
  },
  "hsl": {
    "h": 250.952,
    "s": 70,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35598,
    "c": 0.18676,
    "h": 279.5
  },
  "luminance": 0.03762
}

Semantic roles & 50–950 ramp

primary
#321B99
secondary
#ADC24E
accent
#ED3BCC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321B99

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

Preview Lab → · Contrast checker → · Palette generator →

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