#321B85#321B85

#321B85 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.163 H 283.1°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#321B85
RGBrgb(50, 27, 133)
HSLhsl(253, 66%, 31%)
HSVhsv(253, 80%, 52%)
CMYKcmyk(62.4%, 79.7%, 0%, 47.8%)
CIE-LABlab(20.65, 40.42, -55.01)
CIE-LCHlch(20.65, 68.27, 306.31°)
OKLaboklab(33.41% 0.0369 -0.1586)
OKLCHoklch(33.41% 0.163 283.1)
XYZxyz(5.9397, 3.1550, 22.4817)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B85 #6E851B
analogous
#1B3985 #321B85 #671B85
triadic
#321B85 #85321B #1B8532
tetradic
#321B85 #851B39 #6E851B #1B8567
square
#321B85 #851B39 #6E851B #1B8567
split-complementary
#321B85 #85671B #39851B
monochromatic
#0C061F #1F1152 #321B85 #4525B8 #6342D9

Accessibility & contrast

On white

12.88
#321B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#321B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B85
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B85#FFFFFF#000000##FFFFFF
##321B851.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321b85;
/* rgb */ color: rgb(50, 27, 133);
/* oklch */ color: oklch(33.4% 0.163 283.1);
Tailwind
colors: {
  custom: {
    50: '#755baa',
    500: '#321b85',
    950: '#000000',
  },
}
SCSS
$custom: #321b85;
$custom-light: #755baa;
$custom-dark: #000000;
JSON
{
  "hex": "#321b85",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 253.019,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33407,
    "c": 0.16285,
    "h": 283.1
  },
  "luminance": 0.03155
}

Semantic roles & 50–950 ramp

primary
#321B85
secondary
#9FB844
accent
#E93FC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321B85

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

Preview Lab → · Contrast checker → · Palette generator →

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