#321C76#321C76

#321C76 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.143 H 286.3°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#321C76
RGBrgb(50, 28, 118)
HSLhsl(255, 62%, 29%)
HSVhsv(255, 76%, 46%)
CMYKcmyk(57.6%, 76.3%, 0%, 53.7%)
CIE-LABlab(19.29, 35.22, -47.72)
CIE-LCHlch(19.29, 59.31, 306.43°)
OKLaboklab(31.98% 0.0403 -0.1373)
OKLCHoklch(31.98% 0.143 286.3)
XYZxyz(4.9997, 2.8163, 17.4162)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C76 #60761C
analogous
#1C3376 #321C76 #5F1C76
triadic
#321C76 #76321C #1C7632
tetradic
#321C76 #761C33 #60761C #1C765F
square
#321C76 #761C33 #60761C #1C765F
split-complementary
#321C76 #765F1C #33761C
monochromatic
#0A0619 #1D1045 #321C76 #4728A7 #603CD1

Accessibility & contrast

On white

13.43
#321C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#321C76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C76
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C76#FFFFFF#000000##FFFFFF
##321C761.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#143547
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321c76;
/* rgb */ color: rgb(50, 28, 118);
/* oklch */ color: oklch(32.0% 0.143 286.3);
Tailwind
colors: {
  custom: {
    50: '#725b9e',
    500: '#321c76',
    950: '#000000',
  },
}
SCSS
$custom: #321c76;
$custom-light: #725b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#321c76",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 118
  },
  "hsl": {
    "h": 254.667,
    "s": 61.644,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31983,
    "c": 0.14308,
    "h": 286.3
  },
  "luminance": 0.02817
}

Semantic roles & 50–950 ramp

primary
#321C76
secondary
#91AA44
accent
#E543BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #321C76

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

Preview Lab → · Contrast checker → · Palette generator →

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