#321B7B#321B7B

#321B7B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.150 H 285.3°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#321B7B
RGBrgb(50, 27, 123)
HSLhsl(254, 64%, 29%)
HSVhsv(254, 78%, 48%)
CMYKcmyk(59.3%, 78%, 0%, 51.8%)
CIE-LABlab(19.60, 37.33, -50.40)
CIE-LCHlch(19.60, 62.72, 306.52°)
OKLaboklab(32.36% 0.0398 -0.1451)
OKLCHoklch(32.36% 0.151 285.3)
XYZxyz(5.2814, 2.8917, 19.0149)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B7B #647B1B
analogous
#1B347B #321B7B #621B7B
triadic
#321B7B #7B321B #1B7B32
tetradic
#321B7B #7B1B34 #647B1B #1B7B62
square
#321B7B #7B1B34 #647B1B #1B7B62
split-complementary
#321B7B #7B621B #347B1B
monochromatic
#0A0619 #1E1049 #321B7B #4626AD #613CD4

Accessibility & contrast

On white

13.30
#321B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#321B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B7B
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B7B#FFFFFF#000000##FFFFFF
##321B7B1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#0C364A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321b7b;
/* rgb */ color: rgb(50, 27, 123);
/* oklch */ color: oklch(32.4% 0.150 285.3);
Tailwind
colors: {
  custom: {
    50: '#735aa2',
    500: '#321b7b',
    950: '#000000',
  },
}
SCSS
$custom: #321b7b;
$custom-light: #735aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#321b7b",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 254.375,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32356,
    "c": 0.1505,
    "h": 285.3
  },
  "luminance": 0.02892
}

Semantic roles & 50–950 ramp

primary
#321B7B
secondary
#95AF43
accent
#E741BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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