#321B8B#321B8B

#321B8B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.170 H 281.9°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#321B8B
RGBrgb(50, 27, 139)
HSLhsl(252, 67%, 33%)
HSVhsv(252, 81%, 55%)
CMYKcmyk(64%, 80.6%, 0%, 45.5%)
CIE-LABlab(21.30, 42.27, -57.71)
CIE-LCHlch(21.30, 71.53, 306.22°)
OKLaboklab(34.05% 0.0351 -0.1665)
OKLCHoklch(34.05% 0.17 281.9)
XYZxyz(6.3661, 3.3256, 24.7275)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B8B #748B1B
analogous
#1B3C8B #321B8B #6A1B8B
triadic
#321B8B #8B321B #1B8B32
tetradic
#321B8B #8B1B3C #748B1B #1B8B6A
square
#321B8B #8B1B3C #748B1B #1B8B6A
split-complementary
#321B8B #8B6A1B #3C8B1B
monochromatic
#0D0725 #201158 #321B8B #4425BE #6445DB

Accessibility & contrast

On white

12.61
#321B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#321B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B8B
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B8B#FFFFFF#000000##FFFFFF
##321B8B1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #321b8b;
/* rgb */ color: rgb(50, 27, 139);
/* oklch */ color: oklch(34.1% 0.170 281.9);
Tailwind
colors: {
  custom: {
    50: '#775bae',
    500: '#321b8b',
    950: '#000000',
  },
}
SCSS
$custom: #321b8b;
$custom-light: #775bae;
$custom-dark: #000000;
JSON
{
  "hex": "#321b8b",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 252.321,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34053,
    "c": 0.17012,
    "h": 281.9
  },
  "luminance": 0.03326
}

Semantic roles & 50–950 ramp

primary
#321B8B
secondary
#A4BC45
accent
#EA3DC7
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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