#321B7D#321B7D

#321B7D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.153 H 284.8°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#321B7D
RGBrgb(50, 27, 125)
HSLhsl(254, 64%, 30%)
HSVhsv(254, 78%, 49%)
CMYKcmyk(60%, 78.4%, 0%, 51%)
CIE-LABlab(19.81, 37.95, -51.34)
CIE-LCHlch(19.81, 63.84, 306.47°)
OKLaboklab(32.56% 0.0392 -0.1479)
OKLCHoklch(32.56% 0.153 284.8)
XYZxyz(5.4079, 2.9423, 19.6810)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B7D #667D1B
analogous
#1B357D #321B7D #631B7D
triadic
#321B7D #7D321B #1B7D32
tetradic
#321B7D #7D1B35 #667D1B #1B7D63
square
#321B7D #7D1B35 #667D1B #1B7D63
split-complementary
#321B7D #7D631B #357D1B
monochromatic
#0A0519 #1E104B #321B7D #4626AF #613DD5

Accessibility & contrast

On white

13.22
#321B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#321B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B7D
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B7D#FFFFFF#000000##FFFFFF
##321B7D1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#08374B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321b7d;
/* rgb */ color: rgb(50, 27, 125);
/* oklch */ color: oklch(32.6% 0.153 284.8);
Tailwind
colors: {
  custom: {
    50: '#745aa4',
    500: '#321b7d',
    950: '#000000',
  },
}
SCSS
$custom: #321b7d;
$custom-light: #745aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#321b7d",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 254.082,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32563,
    "c": 0.153,
    "h": 284.8
  },
  "luminance": 0.02943
}

Semantic roles & 50–950 ramp

primary
#321B7D
secondary
#97B143
accent
#E740C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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