#321D8C#321D8C

#321D8C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.169 H 281.4°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#321D8C
RGBrgb(50, 29, 140)
HSLhsl(251, 66%, 33%)
HSVhsv(251, 79%, 55%)
CMYKcmyk(64.3%, 79.3%, 0%, 45.1%)
CIE-LABlab(21.76, 41.56, -57.57)
CIE-LCHlch(21.76, 71.01, 305.83°)
OKLaboklab(34.41% 0.0335 -0.1661)
OKLCHoklch(34.41% 0.169 281.4)
XYZxyz(6.4869, 3.4498, 25.1299)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D8C #778C1D
analogous
#1D408C #321D8C #691D8C
triadic
#321D8C #8C321D #1D8C32
tetradic
#321D8C #8C1D40 #778C1D #1D8C69
square
#321D8C #8C1D40 #778C1D #1D8C69
split-complementary
#321D8C #8C691D #408C1D
monochromatic
#0E0827 #201259 #321D8C #4428BF #654AD9

Accessibility & contrast

On white

12.43
#321D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D8C
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D8C#FFFFFF#000000##FFFFFF
##321D8C1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #321d8c;
/* rgb */ color: rgb(50, 29, 140);
/* oklch */ color: oklch(34.4% 0.169 281.4);
Tailwind
colors: {
  custom: {
    50: '#775caf',
    500: '#321d8c',
    950: '#000000',
  },
}
SCSS
$custom: #321d8c;
$custom-light: #775caf;
$custom-dark: #000000;
JSON
{
  "hex": "#321d8c",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 251.351,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34405,
    "c": 0.16946,
    "h": 281.4
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

primary
#321D8C
secondary
#A6BC49
accent
#E93FC9
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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