#321F84#321F84

#321F84 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.158 H 282.6°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#321F84
RGBrgb(50, 31, 132)
HSLhsl(251, 62%, 32%)
HSVhsv(251, 77%, 52%)
CMYKcmyk(62.1%, 76.5%, 0%, 48.2%)
CIE-LABlab(21.30, 37.98, -53.33)
CIE-LCHlch(21.30, 65.47, 305.46°)
OKLaboklab(33.83% 0.0343 -0.1537)
OKLCHoklch(33.83% 0.158 282.6)
XYZxyz(5.9689, 3.3236, 22.1523)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F84 #71841F
analogous
#1F3F84 #321F84 #651F84
triadic
#321F84 #84321F #1F8432
tetradic
#321F84 #841F3F #71841F #1F8465
square
#321F84 #841F3F #71841F #1F8465
split-complementary
#321F84 #84651F #3F841F
monochromatic
#0C0821 #1F1352 #321F84 #452BB6 #6349D4

Accessibility & contrast

On white

12.61
#321F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#321F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F84
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F84#FFFFFF#000000##FFFFFF
##321F841.0012.611.6612.61
#FFFFFF12.611.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #321f84;
/* rgb */ color: rgb(50, 31, 132);
/* oklch */ color: oklch(33.8% 0.158 282.6);
Tailwind
colors: {
  custom: {
    50: '#755da9',
    500: '#321f84',
    950: '#000000',
  },
}
SCSS
$custom: #321f84;
$custom-light: #755da9;
$custom-dark: #000000;
JSON
{
  "hex": "#321f84",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 251.287,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33826,
    "c": 0.15752,
    "h": 282.6
  },
  "luminance": 0.03324
}

Semantic roles & 50–950 ramp

primary
#321F84
secondary
#A2B748
accent
#E543C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321F84

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

Preview Lab → · Contrast checker → · Palette generator →

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