#321F89#321F89

#321F89 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.164 H 281.6°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#321F89
RGBrgb(50, 31, 137)
HSLhsl(251, 63%, 33%)
HSVhsv(251, 77%, 54%)
CMYKcmyk(63.5%, 77.4%, 0%, 46.3%)
CIE-LABlab(21.81, 39.57, -55.61)
CIE-LCHlch(21.81, 68.25, 305.43°)
OKLaboklab(34.35% 0.0331 -0.1604)
OKLCHoklch(34.35% 0.164 281.6)
XYZxyz(6.3193, 3.4638, 23.9976)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F89 #76891F
analogous
#1F4189 #321F89 #671F89
triadic
#321F89 #89321F #1F8932
tetradic
#321F89 #891F41 #76891F #1F8967
square
#321F89 #891F41 #76891F #1F8967
split-complementary
#321F89 #89671F #41891F
monochromatic
#0E0825 #201457 #321F89 #442ABB #654CD6

Accessibility & contrast

On white

12.41
#321F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#321F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F89
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F89#FFFFFF#000000##FFFFFF
##321F891.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #321f89;
/* rgb */ color: rgb(50, 31, 137);
/* oklch */ color: oklch(34.3% 0.164 281.6);
Tailwind
colors: {
  custom: {
    50: '#765dac',
    500: '#321f89',
    950: '#000000',
  },
}
SCSS
$custom: #321f89;
$custom-light: #765dac;
$custom-dark: #000000;
JSON
{
  "hex": "#321f89",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 250.755,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34346,
    "c": 0.16379,
    "h": 281.6
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#321F89
secondary
#A5B94B
accent
#E642C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321F89

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

Preview Lab → · Contrast checker → · Palette generator →

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