#321B77#321B77

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

Color values

HEX#321B77
RGBrgb(50, 27, 119)
HSLhsl(255, 63%, 29%)
HSVhsv(255, 77%, 47%)
CMYKcmyk(58%, 77.3%, 0%, 53.3%)
CIE-LABlab(19.20, 36.08, -48.51)
CIE-LCHlch(19.20, 60.46, 306.64°)
OKLaboklab(31.95% 0.0409 -0.1396)
OKLCHoklch(31.95% 0.145 286.3)
XYZxyz(5.0361, 2.7936, 17.7230)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B77 #60771B
analogous
#1B3277 #321B77 #601B77
triadic
#321B77 #77321B #1B7732
tetradic
#321B77 #771B32 #60771B #1B7760
square
#321B77 #771B32 #60771B #1B7760
split-complementary
#321B77 #77601B #32771B
monochromatic
#0A0619 #1D1045 #321B77 #4726A9 #603AD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##321B77#FFFFFF#000000##FFFFFF
##321B771.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)
#00317A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#123447
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321b77;
/* rgb */ color: rgb(50, 27, 119);
/* oklch */ color: oklch(31.9% 0.145 286.3);
Tailwind
colors: {
  custom: {
    50: '#735a9f',
    500: '#321b77',
    950: '#000000',
  },
}
SCSS
$custom: #321b77;
$custom-light: #735a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#321b77",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 255,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31946,
    "c": 0.14548,
    "h": 286.3
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#321B77
secondary
#91AB42
accent
#E642BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #321B77

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

Preview Lab → · Contrast checker → · Palette generator →

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