#321D78#321D78

#321D78 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.144 H 285.6°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#321D78
RGBrgb(50, 29, 120)
HSLhsl(254, 61%, 29%)
HSVhsv(254, 76%, 47%)
CMYKcmyk(58.3%, 75.8%, 0%, 52.9%)
CIE-LABlab(19.69, 35.29, -48.35)
CIE-LCHlch(19.69, 59.86, 306.13°)
OKLaboklab(32.32% 0.0389 -0.1391)
OKLCHoklch(32.32% 0.144 285.6)
XYZxyz(5.1439, 2.9126, 18.0568)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D78 #63781D
analogous
#1D3678 #321D78 #601D78
triadic
#321D78 #78321D #1D7832
tetradic
#321D78 #781D36 #63781D #1D7860
square
#321D78 #781D36 #63781D #1D7860
split-complementary
#321D78 #78601D #36781D
monochromatic
#0A0619 #1D1147 #321D78 #4729A9 #603FD1

Accessibility & contrast

On white

13.27
#321D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#321D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D78
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D78#FFFFFF#000000##FFFFFF
##321D781.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#113649
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321d78;
/* rgb */ color: rgb(50, 29, 120);
/* oklch */ color: oklch(32.3% 0.144 285.6);
Tailwind
colors: {
  custom: {
    50: '#735ba0',
    500: '#321d78',
    950: '#000000',
  },
}
SCSS
$custom: #321d78;
$custom-light: #735ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#321d78",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 253.846,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32324,
    "c": 0.14449,
    "h": 285.6
  },
  "luminance": 0.02913
}

Semantic roles & 50–950 ramp

primary
#321D78
secondary
#94AC45
accent
#E444BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #321D78

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

Preview Lab → · Contrast checker → · Palette generator →

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