#321A9E#321A9E

#321A9E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.193 H 278.8°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#321A9E
RGBrgb(50, 26, 158)
HSLhsl(251, 72%, 36%)
HSVhsv(251, 84%, 62%)
CMYKcmyk(68.4%, 83.5%, 0%, 38%)
CIE-LABlab(23.29, 48.45, -66.17)
CIE-LCHlch(23.29, 82.01, 306.21°)
OKLaboklab(36.06% 0.0295 -0.1911)
OKLCHoklch(36.06% 0.193 278.8)
XYZxyz(7.8544, 3.8848, 32.6771)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A9E #869E1A
analogous
#1A449E #321A9E #741A9E
triadic
#321A9E #9E321A #1A9E32
tetradic
#321A9E #9E1A44 #869E1A #1A9E74
square
#321A9E #9E1A44 #869E1A #1A9E74
split-complementary
#321A9E #9E741A #449E1A
monochromatic
#110935 #211169 #321A9E #4323D3 #6B50E2

Accessibility & contrast

On white

11.82
#321A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321A9E
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A9E#FFFFFF#000000##FFFFFF
##321A9E1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #321a9e;
/* rgb */ color: rgb(50, 26, 158);
/* oklch */ color: oklch(36.1% 0.193 278.8);
Tailwind
colors: {
  custom: {
    50: '#7b5cbc',
    500: '#321a9e',
    950: '#000000',
  },
}
SCSS
$custom: #321a9e;
$custom-light: #7b5cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#321a9e",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 250.909,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36057,
    "c": 0.19335,
    "h": 278.8
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#321A9E
secondary
#AFC54F
accent
#EE39CE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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