#321899#321899

#321899 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.189 H 279.8°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#321899
RGBrgb(50, 24, 153)
HSLhsl(252, 73%, 35%)
HSVhsv(252, 84%, 60%)
CMYKcmyk(67.3%, 84.3%, 0%, 40%)
CIE-LABlab(22.41, 47.84, -64.55)
CIE-LCHlch(22.41, 80.35, 306.54°)
OKLaboklab(35.28% 0.0321 -0.1864)
OKLCHoklch(35.28% 0.189 279.8)
XYZxyz(7.3900, 3.6307, 30.4422)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321899 #7F9918
analogous
#183F99 #321899 #731899
triadic
#321899 #993218 #189932
tetradic
#321899 #99183F #7F9918 #189973
square
#321899 #99183F #7F9918 #189973
split-complementary
#321899 #997318 #3F9918
monochromatic
#0F072F #211064 #321899 #4320CE #6849E2

Accessibility & contrast

On white

12.17
#321899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#321899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321899
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321899#FFFFFF#000000##FFFFFF
##3218991.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #321899;
/* rgb */ color: rgb(50, 24, 153);
/* oklch */ color: oklch(35.3% 0.189 279.8);
Tailwind
colors: {
  custom: {
    50: '#7a5bb8',
    500: '#321899',
    950: '#000000',
  },
}
SCSS
$custom: #321899;
$custom-light: #7a5bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#321899",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 153
  },
  "hsl": {
    "h": 252.093,
    "s": 72.881,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35285,
    "c": 0.1891,
    "h": 279.8
  },
  "luminance": 0.03631
}

Semantic roles & 50–950 ramp

primary
#321899
secondary
#ABC449
accent
#F038CB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321899

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

Preview Lab → · Contrast checker → · Palette generator →

#321899 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva