#321D85#321D85

#321D85 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.161 H 282.8°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#321D85
RGBrgb(50, 29, 133)
HSLhsl(252, 64%, 32%)
HSVhsv(252, 78%, 52%)
CMYKcmyk(62.4%, 78.2%, 0%, 47.8%)
CIE-LABlab(21.02, 39.38, -54.41)
CIE-LCHlch(21.02, 67.17, 305.90°)
OKLaboklab(33.66% 0.0355 -0.1569)
OKLCHoklch(33.66% 0.161 282.8)
XYZxyz(5.9871, 3.2499, 22.4976)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D85 #70851D
analogous
#1D3C85 #321D85 #661D85
triadic
#321D85 #85321D #1D8532
tetradic
#321D85 #851D3C #70851D #1D8566
square
#321D85 #851D3C #70851D #1D8566
split-complementary
#321D85 #85661D #3C851D
monochromatic
#0C0721 #1F1253 #321D85 #4528B7 #6346D7

Accessibility & contrast

On white

12.73
#321D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#321D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D85
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D85#FFFFFF#000000##FFFFFF
##321D851.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #321d85;
/* rgb */ color: rgb(50, 29, 133);
/* oklch */ color: oklch(33.7% 0.161 282.8);
Tailwind
colors: {
  custom: {
    50: '#755caa',
    500: '#321d85',
    950: '#000000',
  },
}
SCSS
$custom: #321d85;
$custom-light: #755caa;
$custom-dark: #000000;
JSON
{
  "hex": "#321d85",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 252.115,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33661,
    "c": 0.16086,
    "h": 282.8
  },
  "luminance": 0.0325
}

Semantic roles & 50–950 ramp

primary
#321D85
secondary
#A1B846
accent
#E741C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321D85

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

Preview Lab → · Contrast checker → · Palette generator →

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