#321A78#321A78

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

Color values

HEX#321A78
RGBrgb(50, 26, 120)
HSLhsl(255, 64%, 29%)
HSVhsv(255, 78%, 47%)
CMYKcmyk(58.3%, 78.3%, 0%, 52.9%)
CIE-LABlab(19.11, 36.93, -49.30)
CIE-LCHlch(19.11, 61.60, 306.84°)
OKLaboklab(31.92% 0.0414 -0.1419)
OKLCHoklch(31.92% 0.148 286.3)
XYZxyz(5.0739, 2.7727, 18.0335)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A78 #60781A
analogous
#1A3178 #321A78 #611A78
triadic
#321A78 #78321A #1A7832
tetradic
#321A78 #781A31 #60781A #1A7861
square
#321A78 #781A31 #60781A #1A7861
split-complementary
#321A78 #78611A #31781A
monochromatic
#0A0519 #1D0F46 #321A78 #4725AA #6038D4

Accessibility & contrast

On white

13.51
#321A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#321A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A78
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A78#FFFFFF#000000##FFFFFF
##321A781.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#113448
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321a78;
/* rgb */ color: rgb(50, 26, 120);
/* oklch */ color: oklch(31.9% 0.148 286.3);
Tailwind
colors: {
  custom: {
    50: '#735aa0',
    500: '#321a78',
    950: '#000000',
  },
}
SCSS
$custom: #321a78;
$custom-light: #735aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#321a78",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 255.319,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31915,
    "c": 0.14783,
    "h": 286.3
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

primary
#321A78
secondary
#91AC41
accent
#E740BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #321A78

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

Preview Lab → · Contrast checker → · Palette generator →

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