#321B81#321B81

#321B81 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.158 H 283.9°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#321B81
RGBrgb(50, 27, 129)
HSLhsl(254, 65%, 31%)
HSVhsv(254, 79%, 51%)
CMYKcmyk(61.2%, 79.1%, 0%, 49.4%)
CIE-LABlab(20.23, 39.19, -53.19)
CIE-LCHlch(20.23, 66.07, 306.38°)
OKLaboklab(32.98% 0.0381 -0.1533)
OKLCHoklch(32.98% 0.158 283.9)
XYZxyz(5.6686, 3.0466, 21.0540)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B81 #6A811B
analogous
#1B3781 #321B81 #651B81
triadic
#321B81 #81321B #1B8132
tetradic
#321B81 #811B37 #6A811B #1B8165
square
#321B81 #811B37 #6A811B #1B8165
split-complementary
#321B81 #81651B #37811B
monochromatic
#0B061C #1E104E #321B81 #4626B4 #623FD7

Accessibility & contrast

On white

13.05
#321B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#321B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B81
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B81#FFFFFF#000000##FFFFFF
##321B811.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321b81;
/* rgb */ color: rgb(50, 27, 129);
/* oklch */ color: oklch(33.0% 0.158 283.9);
Tailwind
colors: {
  custom: {
    50: '#755ba7',
    500: '#321b81',
    950: '#000000',
  },
}
SCSS
$custom: #321b81;
$custom-light: #755ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#321b81",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 253.529,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32982,
    "c": 0.15794,
    "h": 283.9
  },
  "luminance": 0.03047
}

Semantic roles & 50–950 ramp

primary
#321B81
secondary
#9BB543
accent
#E83FC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321B81

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

Preview Lab → · Contrast checker → · Palette generator →

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