#321C78#321C78

#321C78 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.146 H 285.8°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#321C78
RGBrgb(50, 28, 120)
HSLhsl(254, 62%, 29%)
HSVhsv(254, 77%, 47%)
CMYKcmyk(58.3%, 76.7%, 0%, 52.9%)
CIE-LABlab(19.49, 35.85, -48.67)
CIE-LCHlch(19.49, 60.45, 306.37°)
OKLaboklab(32.18% 0.0398 -0.1401)
OKLCHoklch(32.18% 0.146 285.8)
XYZxyz(5.1198, 2.8644, 18.0488)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C78 #62781C
analogous
#1C3478 #321C78 #601C78
triadic
#321C78 #78321C #1C7832
tetradic
#321C78 #781C34 #62781C #1C7860
square
#321C78 #781C34 #62781C #1C7860
split-complementary
#321C78 #78601C #34781C
monochromatic
#0A0619 #1D1046 #321C78 #4728AA #603DD2

Accessibility & contrast

On white

13.35
#321C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#321C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C78
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C78#FFFFFF#000000##FFFFFF
##321C781.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#113548
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321c78;
/* rgb */ color: rgb(50, 28, 120);
/* oklch */ color: oklch(32.2% 0.146 285.8);
Tailwind
colors: {
  custom: {
    50: '#735ba0',
    500: '#321c78',
    950: '#000000',
  },
}
SCSS
$custom: #321c78;
$custom-light: #735ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#321c78",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 254.348,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32184,
    "c": 0.14562,
    "h": 285.8
  },
  "luminance": 0.02865
}

Semantic roles & 50–950 ramp

primary
#321C78
secondary
#93AC44
accent
#E543BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #321C78

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

Preview Lab → · Contrast checker → · Palette generator →

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