#321C75#321C75

#321C75 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.142 H 286.6°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#321C75
RGBrgb(50, 28, 117)
HSLhsl(255, 61%, 28%)
HSVhsv(255, 76%, 46%)
CMYKcmyk(57.3%, 76.1%, 0%, 54.1%)
CIE-LABlab(19.19, 34.91, -47.24)
CIE-LCHlch(19.19, 58.73, 306.46°)
OKLaboklab(31.88% 0.0405 -0.1359)
OKLCHoklch(31.88% 0.142 286.6)
XYZxyz(4.9406, 2.7927, 17.1049)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C75 #5F751C
analogous
#1C3375 #321C75 #5E1C75
triadic
#321C75 #75321C #1C7532
tetradic
#321C75 #751C33 #5F751C #1C755E
square
#321C75 #751C33 #5F751C #1C755E
split-complementary
#321C75 #755E1C #33751C
monochromatic
#0B0619 #1D1044 #321C75 #4728A6 #603BD0

Accessibility & contrast

On white

13.47
#321C75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C75
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C75#FFFFFF#000000##FFFFFF
##321C751.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#153447
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321c75;
/* rgb */ color: rgb(50, 28, 117);
/* oklch */ color: oklch(31.9% 0.142 286.6);
Tailwind
colors: {
  custom: {
    50: '#725b9e',
    500: '#321c75',
    950: '#000000',
  },
}
SCSS
$custom: #321c75;
$custom-light: #725b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#321c75",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 117
  },
  "hsl": {
    "h": 254.831,
    "s": 61.379,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31882,
    "c": 0.1418,
    "h": 286.6
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#321C75
secondary
#90A944
accent
#E443BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #321C75

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

Preview Lab → · Contrast checker → · Palette generator →

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