#321A9B#321A9B

#321A9B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.190 H 279.2°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#321A9B
RGBrgb(50, 26, 155)
HSLhsl(251, 71%, 35%)
HSVhsv(251, 83%, 61%)
CMYKcmyk(67.7%, 83.2%, 0%, 39.2%)
CIE-LABlab(22.94, 47.56, -64.90)
CIE-LCHlch(22.94, 80.46, 306.23°)
OKLaboklab(35.72% 0.0305 -0.1874)
OKLCHoklch(35.72% 0.19 279.2)
XYZxyz(7.5993, 3.7828, 31.3337)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A9B #839B1A
analogous
#1A429B #321A9B #721A9B
triadic
#321A9B #9B321A #1A9B32
tetradic
#321A9B #9B1A42 #839B1A #1A9B72
square
#321A9B #9B1A42 #839B1A #1A9B72
split-complementary
#321A9B #9B721A #429B1A
monochromatic
#100832 #211167 #321A9B #4323CF #694EE1

Accessibility & contrast

On white

11.95
#321A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#321A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A9B
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A9B#FFFFFF#000000##FFFFFF
##321A9B1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #321a9b;
/* rgb */ color: rgb(50, 26, 155);
/* oklch */ color: oklch(35.7% 0.190 279.2);
Tailwind
colors: {
  custom: {
    50: '#7a5cba',
    500: '#321a9b',
    950: '#000000',
  },
}
SCSS
$custom: #321a9b;
$custom-light: #7a5cba;
$custom-dark: #000000;
JSON
{
  "hex": "#321a9b",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 251.163,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35717,
    "c": 0.18988,
    "h": 279.2
  },
  "luminance": 0.03783
}

Semantic roles & 50–950 ramp

primary
#321A9B
secondary
#AEC44D
accent
#EE3ACC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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