#321A9F#321A9F

#321A9F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.195 H 278.6°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#321A9F
RGBrgb(50, 26, 159)
HSLhsl(251, 72%, 36%)
HSVhsv(251, 84%, 62%)
CMYKcmyk(68.6%, 83.6%, 0%, 37.6%)
CIE-LABlab(23.40, 48.74, -66.59)
CIE-LCHlch(23.40, 82.52, 306.20°)
OKLaboklab(36.17% 0.0292 -0.1923)
OKLCHoklch(36.17% 0.195 278.6)
XYZxyz(7.9408, 3.9194, 33.1322)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A9F #879F1A
analogous
#1A459F #321A9F #751A9F
triadic
#321A9F #9F321A #1A9F32
tetradic
#321A9F #9F1A45 #879F1A #1A9F75
square
#321A9F #9F1A45 #879F1A #1A9F75
split-complementary
#321A9F #9F751A #459F1A
monochromatic
#110936 #21116A #321A9F #4323D4 #6B51E3

Accessibility & contrast

On white

11.77
#321A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#321A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A9F
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A9F#FFFFFF#000000##FFFFFF
##321A9F1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #321a9f;
/* rgb */ color: rgb(50, 26, 159);
/* oklch */ color: oklch(36.2% 0.195 278.6);
Tailwind
colors: {
  custom: {
    50: '#7b5cbd',
    500: '#321a9f',
    950: '#000000',
  },
}
SCSS
$custom: #321a9f;
$custom-light: #7b5cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#321a9f",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 250.827,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36171,
    "c": 0.19451,
    "h": 278.6
  },
  "luminance": 0.0392
}

Semantic roles & 50–950 ramp

primary
#321A9F
secondary
#B0C550
accent
#EF39CE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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