#321D66#321D66

#321D66 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.121 H 290.7°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#321D66
RGBrgb(50, 29, 102)
HSLhsl(257, 56%, 26%)
HSVhsv(257, 72%, 40%)
CMYKcmyk(51%, 71.6%, 0%, 60%)
CIE-LABlab(17.99, 29.59, -39.46)
CIE-LCHlch(17.99, 49.32, 306.86°)
OKLaboklab(30.59% 0.0427 -0.1131)
OKLCHoklch(30.59% 0.121 290.7)
XYZxyz(4.1524, 2.5160, 12.8346)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D66 #51661D
analogous
#1D2C66 #321D66 #561D66
triadic
#321D66 #66321D #1D6632
tetradic
#321D66 #661D2C #51661D #1D6656
square
#321D66 #661D2C #51661D #1D6656
split-complementary
#321D66 #66561D #2C661D
monochromatic
#0C0718 #1B0F36 #321D66 #492B96 #6138C5

Accessibility & contrast

On white

13.97
#321D66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#321D66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D66
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D66#FFFFFF#000000##FFFFFF
##321D661.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#002A65
Tritanopia (blue-blind)
#212F3F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321d66;
/* rgb */ color: rgb(50, 29, 102);
/* oklch */ color: oklch(30.6% 0.121 290.7);
Tailwind
colors: {
  custom: {
    50: '#6f5a92',
    500: '#321d66',
    950: '#000000',
  },
}
SCSS
$custom: #321d66;
$custom-light: #6f5a92;
$custom-dark: #000000;
JSON
{
  "hex": "#321d66",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 102
  },
  "hsl": {
    "h": 257.26,
    "s": 55.725,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3059,
    "c": 0.12087,
    "h": 290.7
  },
  "luminance": 0.02516
}

Semantic roles & 50–950 ramp

primary
#321D66
secondary
#829B44
accent
#DF49B4
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321D66

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

Preview Lab → · Contrast checker → · Palette generator →

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