#321D8B#321D8B

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

Color values

HEX#321D8B
RGBrgb(50, 29, 139)
HSLhsl(251, 65%, 33%)
HSVhsv(251, 79%, 55%)
CMYKcmyk(64%, 79.1%, 0%, 45.5%)
CIE-LABlab(21.65, 41.25, -57.13)
CIE-LCHlch(21.65, 70.46, 305.84°)
OKLaboklab(34.3% 0.0338 -0.1648)
OKLCHoklch(34.3% 0.168 281.6)
XYZxyz(6.4135, 3.4204, 24.7433)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D8B #768B1D
analogous
#1D3F8B #321D8B #691D8B
triadic
#321D8B #8B321D #1D8B32
tetradic
#321D8B #8B1D3F #768B1D #1D8B69
square
#321D8B #8B1D3F #768B1D #1D8B69
split-complementary
#321D8B #8B691D #3F8B1D
monochromatic
#0E0826 #201258 #321D8B #4428BE #6549D9

Accessibility & contrast

On white

12.47
#321D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#321D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D8B
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D8B#FFFFFF#000000##FFFFFF
##321D8B1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321d8b;
/* rgb */ color: rgb(50, 29, 139);
/* oklch */ color: oklch(34.3% 0.168 281.6);
Tailwind
colors: {
  custom: {
    50: '#765cae',
    500: '#321d8b',
    950: '#000000',
  },
}
SCSS
$custom: #321d8b;
$custom-light: #765cae;
$custom-dark: #000000;
JSON
{
  "hex": "#321d8b",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 251.455,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34298,
    "c": 0.16824,
    "h": 281.6
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#321D8B
secondary
#A5BB49
accent
#E83FC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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