#321D90#321D90

#321D90 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.174 H 280.7°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#321D90
RGBrgb(50, 29, 144)
HSLhsl(251, 66%, 34%)
HSVhsv(251, 80%, 56%)
CMYKcmyk(65.3%, 79.9%, 0%, 43.5%)
CIE-LABlab(22.20, 42.80, -59.35)
CIE-LCHlch(22.20, 73.17, 305.80°)
OKLaboklab(34.84% 0.0324 -0.1713)
OKLCHoklch(34.84% 0.174 280.7)
XYZxyz(6.7872, 3.5699, 26.7115)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D90 #7B901D
analogous
#1D4190 #321D90 #6C1D90
triadic
#321D90 #90321D #1D9032
tetradic
#321D90 #901D41 #7B901D #1D906C
square
#321D90 #901D41 #7B901D #1D906C
split-complementary
#321D90 #906C1D #41901D
monochromatic
#0F082A #20135D #321D90 #4427C3 #664CDB

Accessibility & contrast

On white

12.25
#321D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#321D90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D90
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D90#FFFFFF#000000##FFFFFF
##321D901.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #321d90;
/* rgb */ color: rgb(50, 29, 144);
/* oklch */ color: oklch(34.8% 0.174 280.7);
Tailwind
colors: {
  custom: {
    50: '#775db2',
    500: '#321d90',
    950: '#000000',
  },
}
SCSS
$custom: #321d90;
$custom-light: #775db2;
$custom-dark: #000000;
JSON
{
  "hex": "#321d90",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 144
  },
  "hsl": {
    "h": 250.957,
    "s": 66.474,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34837,
    "c": 0.17431,
    "h": 280.7
  },
  "luminance": 0.0357
}

Semantic roles & 50–950 ramp

primary
#321D90
secondary
#A9BD4B
accent
#E93ECA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321D90

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

Preview Lab → · Contrast checker → · Palette generator →

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