#321B94#321B94

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

Color values

HEX#321B94
RGBrgb(50, 27, 148)
HSLhsl(251, 69%, 34%)
HSVhsv(251, 82%, 58%)
CMYKcmyk(66.2%, 81.8%, 0%, 42%)
CIE-LABlab(22.30, 45.00, -61.65)
CIE-LCHlch(22.30, 76.33, 306.13°)
OKLaboklab(35.04% 0.0323 -0.178)
OKLCHoklch(35.04% 0.181 280.3)
XYZxyz(7.0509, 3.5995, 28.3344)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B94 #7D941B
analogous
#1B4194 #321B94 #6F1B94
triadic
#321B94 #94321B #1B9432
tetradic
#321B94 #941B41 #7D941B #1B946F
square
#321B94 #941B41 #7D941B #1B946F
split-complementary
#321B94 #946F1B #41941B
monochromatic
#0F082C #211260 #321B94 #4324C8 #674BDE

Accessibility & contrast

On white

12.21
#321B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B94
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B94#FFFFFF#000000##FFFFFF
##321B941.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003192
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #321b94;
/* rgb */ color: rgb(50, 27, 148);
/* oklch */ color: oklch(35.0% 0.181 280.3);
Tailwind
colors: {
  custom: {
    50: '#785cb5',
    500: '#321b94',
    950: '#000000',
  },
}
SCSS
$custom: #321b94;
$custom-light: #785cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#321b94",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 251.405,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35041,
    "c": 0.18087,
    "h": 280.3
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#321B94
secondary
#AAC04B
accent
#EC3CCA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321B94

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

Preview Lab → · Contrast checker → · Palette generator →

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