#321F85#321F85

#321F85 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.159 H 282.4°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#321F85
RGBrgb(50, 31, 133)
HSLhsl(251, 62%, 32%)
HSVhsv(251, 77%, 52%)
CMYKcmyk(62.4%, 76.7%, 0%, 47.8%)
CIE-LABlab(21.40, 38.30, -53.79)
CIE-LCHlch(21.40, 66.03, 305.45°)
OKLaboklab(33.93% 0.0341 -0.1551)
OKLCHoklch(33.93% 0.159 282.4)
XYZxyz(6.0377, 3.3511, 22.5144)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F85 #72851F
analogous
#1F3F85 #321F85 #651F85
triadic
#321F85 #85321F #1F8532
tetradic
#321F85 #851F3F #72851F #1F8565
square
#321F85 #851F3F #72851F #1F8565
split-complementary
#321F85 #85651F #3F851F
monochromatic
#0D0822 #1F1353 #321F85 #452BB7 #644AD5

Accessibility & contrast

On white

12.57
#321F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#321F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F85
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F85#FFFFFF#000000##FFFFFF
##321F851.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #321f85;
/* rgb */ color: rgb(50, 31, 133);
/* oklch */ color: oklch(33.9% 0.159 282.4);
Tailwind
colors: {
  custom: {
    50: '#755daa',
    500: '#321f85',
    950: '#000000',
  },
}
SCSS
$custom: #321f85;
$custom-light: #755daa;
$custom-dark: #000000;
JSON
{
  "hex": "#321f85",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 251.176,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33929,
    "c": 0.15878,
    "h": 282.4
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #321F85

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

Preview Lab → · Contrast checker → · Palette generator →

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