#321B78#321B78

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

Color values

HEX#321B78
RGBrgb(50, 27, 120)
HSLhsl(255, 63%, 29%)
HSVhsv(255, 78%, 47%)
CMYKcmyk(58.3%, 77.5%, 0%, 52.9%)
CIE-LABlab(19.30, 36.39, -48.99)
CIE-LCHlch(19.30, 61.03, 306.61°)
OKLaboklab(32.05% 0.0406 -0.141)
OKLCHoklch(32.05% 0.147 286.1)
XYZxyz(5.0965, 2.8178, 18.0410)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B78 #61781B
analogous
#1B3378 #321B78 #611B78
triadic
#321B78 #78321B #1B7832
tetradic
#321B78 #781B33 #61781B #1B7861
square
#321B78 #781B33 #61781B #1B7861
split-complementary
#321B78 #78611B #33781B
monochromatic
#0A0619 #1D1046 #321B78 #4726AA #603BD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##321B78#FFFFFF#000000##FFFFFF
##321B781.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)
#00317B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#113548
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321b78;
/* rgb */ color: rgb(50, 27, 120);
/* oklch */ color: oklch(32.0% 0.147 286.1);
Tailwind
colors: {
  custom: {
    50: '#735aa0',
    500: '#321b78',
    950: '#000000',
  },
}
SCSS
$custom: #321b78;
$custom-light: #735aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#321b78",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 254.839,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32048,
    "c": 0.14674,
    "h": 286.1
  },
  "luminance": 0.02818
}

Semantic roles & 50–950 ramp

primary
#321B78
secondary
#92AC43
accent
#E641BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #321B78

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

Preview Lab → · Contrast checker → · Palette generator →

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