#321F86#321F86

#321F86 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.160 H 282.2°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#321F86
RGBrgb(50, 31, 134)
HSLhsl(251, 62%, 32%)
HSVhsv(251, 77%, 53%)
CMYKcmyk(62.7%, 76.9%, 0%, 47.5%)
CIE-LABlab(21.50, 38.62, -54.25)
CIE-LCHlch(21.50, 66.59, 305.45°)
OKLaboklab(34.03% 0.0338 -0.1564)
OKLCHoklch(34.03% 0.16 282.2)
XYZxyz(6.1071, 3.3789, 22.8800)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F86 #73861F
analogous
#1F4086 #321F86 #661F86
triadic
#321F86 #86321F #1F8632
tetradic
#321F86 #861F40 #73861F #1F8666
square
#321F86 #861F40 #73861F #1F8666
split-complementary
#321F86 #86661F #40861F
monochromatic
#0D0823 #1F1454 #321F86 #452AB8 #644AD5

Accessibility & contrast

On white

12.53
#321F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#321F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F86
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F86#FFFFFF#000000##FFFFFF
##321F861.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #321f86;
/* rgb */ color: rgb(50, 31, 134);
/* oklch */ color: oklch(34.0% 0.160 282.2);
Tailwind
colors: {
  custom: {
    50: '#755daa',
    500: '#321f86',
    950: '#000000',
  },
}
SCSS
$custom: #321f86;
$custom-light: #755daa;
$custom-dark: #000000;
JSON
{
  "hex": "#321f86",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 251.068,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34033,
    "c": 0.16004,
    "h": 282.2
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#321F86
secondary
#A3B849
accent
#E542C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321F86

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

Preview Lab → · Contrast checker → · Palette generator →

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