#321B80#321B80

#321B80 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.157 H 284.2°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#321B80
RGBrgb(50, 27, 128)
HSLhsl(254, 65%, 30%)
HSVhsv(254, 79%, 50%)
CMYKcmyk(60.9%, 78.9%, 0%, 49.8%)
CIE-LABlab(20.12, 38.88, -52.73)
CIE-LCHlch(20.12, 65.51, 306.40°)
OKLaboklab(32.88% 0.0384 -0.1519)
OKLCHoklch(32.88% 0.157 284.2)
XYZxyz(5.6024, 3.0201, 20.7056)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B80 #69801B
analogous
#1B3780 #321B80 #641B80
triadic
#321B80 #80321B #1B8032
tetradic
#321B80 #801B37 #69801B #1B8064
square
#321B80 #801B37 #69801B #1B8064
split-complementary
#321B80 #80641B #37801B
monochromatic
#0B061B #1E104D #321B80 #4626B3 #613FD6

Accessibility & contrast

On white

13.09
#321B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#321B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B80
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B80#FFFFFF#000000##FFFFFF
##321B801.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#02384D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321b80;
/* rgb */ color: rgb(50, 27, 128);
/* oklch */ color: oklch(32.9% 0.157 284.2);
Tailwind
colors: {
  custom: {
    50: '#745ba6',
    500: '#321b80',
    950: '#000000',
  },
}
SCSS
$custom: #321b80;
$custom-light: #745ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#321b80",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 253.663,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32877,
    "c": 0.15671,
    "h": 284.2
  },
  "luminance": 0.0302
}

Semantic roles & 50–950 ramp

primary
#321B80
secondary
#9AB443
accent
#E840C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321B80

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

Preview Lab → · Contrast checker → · Palette generator →

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