#321A95#321A95

#321A95 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.183 H 280.2°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#321A95
RGBrgb(50, 26, 149)
HSLhsl(252, 70%, 34%)
HSVhsv(252, 83%, 58%)
CMYKcmyk(66.4%, 82.6%, 0%, 41.6%)
CIE-LABlab(22.25, 45.77, -62.35)
CIE-LCHlch(22.25, 77.34, 306.28°)
OKLaboklab(35.04% 0.0325 -0.18)
OKLCHoklch(35.04% 0.183 280.2)
XYZxyz(7.1079, 3.5863, 28.7456)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A95 #7D951A
analogous
#1A4095 #321A95 #701A95
triadic
#321A95 #95321A #1A9532
tetradic
#321A95 #951A40 #7D951A #1A9570
square
#321A95 #951A40 #7D951A #1A9570
split-complementary
#321A95 #95701A #40951A
monochromatic
#0F082D #211161 #321A95 #4323C9 #674ADF

Accessibility & contrast

On white

12.23
#321A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#321A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A95
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A95#FFFFFF#000000##FFFFFF
##321A951.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #321a95;
/* rgb */ color: rgb(50, 26, 149);
/* oklch */ color: oklch(35.0% 0.183 280.2);
Tailwind
colors: {
  custom: {
    50: '#795bb5',
    500: '#321a95',
    950: '#000000',
  },
}
SCSS
$custom: #321a95;
$custom-light: #795bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#321a95",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 149
  },
  "hsl": {
    "h": 251.707,
    "s": 70.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35041,
    "c": 0.18288,
    "h": 280.2
  },
  "luminance": 0.03587
}

Semantic roles & 50–950 ramp

primary
#321A95
secondary
#AAC14A
accent
#ED3BCA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321A95

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

Preview Lab → · Contrast checker → · Palette generator →

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