#321A9D#321A9D

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

Color values

HEX#321A9D
RGBrgb(50, 26, 157)
HSLhsl(251, 72%, 36%)
HSVhsv(251, 83%, 62%)
CMYKcmyk(68.2%, 83.4%, 0%, 38.4%)
CIE-LABlab(23.17, 48.15, -65.75)
CIE-LCHlch(23.17, 81.49, 306.22°)
OKLaboklab(35.94% 0.0299 -0.1899)
OKLCHoklch(35.94% 0.192 278.9)
XYZxyz(7.7686, 3.8506, 32.2256)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A9D #859D1A
analogous
#1A449D #321A9D #731A9D
triadic
#321A9D #9D321A #1A9D32
tetradic
#321A9D #9D1A44 #859D1A #1A9D73
square
#321A9D #9D1A44 #859D1A #1A9D73
split-complementary
#321A9D #9D731A #449D1A
monochromatic
#110934 #211168 #321A9D #4323D2 #6A4FE2

Accessibility & contrast

On white

11.86
#321A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321A9D
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A9D#FFFFFF#000000##FFFFFF
##321A9D1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321a9d;
/* rgb */ color: rgb(50, 26, 157);
/* oklch */ color: oklch(35.9% 0.192 278.9);
Tailwind
colors: {
  custom: {
    50: '#7a5cbb',
    500: '#321a9d',
    950: '#000000',
  },
}
SCSS
$custom: #321a9d;
$custom-light: #7a5cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#321a9d",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 250.992,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35943,
    "c": 0.19219,
    "h": 278.9
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#321A9D
secondary
#AFC44E
accent
#EE39CD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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