#321B97#321B97

#321B97 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.184 H 279.8°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#321B97
RGBrgb(50, 27, 151)
HSLhsl(251, 70%, 35%)
HSVhsv(251, 82%, 59%)
CMYKcmyk(66.9%, 82.1%, 0%, 40.8%)
CIE-LABlab(22.64, 45.91, -62.94)
CIE-LCHlch(22.64, 77.91, 306.10°)
OKLaboklab(35.38% 0.0313 -0.1817)
OKLCHoklch(35.38% 0.184 279.8)
XYZxyz(7.2915, 3.6957, 29.6013)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B97 #80971B
analogous
#1B4297 #321B97 #701B97
triadic
#321B97 #97321B #1B9732
tetradic
#321B97 #971B42 #80971B #1B9770
square
#321B97 #971B42 #80971B #1B9770
split-complementary
#321B97 #97701B #42971B
monochromatic
#10082F #211263 #321B97 #4324CB #684DDF

Accessibility & contrast

On white

12.07
#321B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#321B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B97
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B97#FFFFFF#000000##FFFFFF
##321B971.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #321b97;
/* rgb */ color: rgb(50, 27, 151);
/* oklch */ color: oklch(35.4% 0.184 279.8);
Tailwind
colors: {
  custom: {
    50: '#795cb7',
    500: '#321b97',
    950: '#000000',
  },
}
SCSS
$custom: #321b97;
$custom-light: #795cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#321b97",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 251.129,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35375,
    "c": 0.18441,
    "h": 279.8
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#321B97
secondary
#ACC14C
accent
#EC3BCC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321B97

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

Preview Lab → · Contrast checker → · Palette generator →

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