#321B7C#321B7C

#321B7C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.152 H 285.1°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#321B7C
RGBrgb(50, 27, 124)
HSLhsl(254, 64%, 30%)
HSVhsv(254, 78%, 49%)
CMYKcmyk(59.7%, 78.2%, 0%, 51.4%)
CIE-LABlab(19.71, 37.64, -50.87)
CIE-LCHlch(19.71, 63.28, 306.50°)
OKLaboklab(32.46% 0.0395 -0.1465)
OKLCHoklch(32.46% 0.152 285.1)
XYZxyz(5.3443, 2.9169, 19.3463)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B7C #657C1B
analogous
#1B357C #321B7C #631B7C
triadic
#321B7C #7C321B #1B7C32
tetradic
#321B7C #7C1B35 #657C1B #1B7C63
square
#321B7C #7C1B35 #657C1B #1B7C63
split-complementary
#321B7C #7C631B #357C1B
monochromatic
#0A0519 #1E104A #321B7C #4626AE #613DD5

Accessibility & contrast

On white

13.26
#321B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B7C
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B7C#FFFFFF#000000##FFFFFF
##321B7C1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#0A364A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321b7c;
/* rgb */ color: rgb(50, 27, 124);
/* oklch */ color: oklch(32.5% 0.152 285.1);
Tailwind
colors: {
  custom: {
    50: '#745aa3',
    500: '#321b7c',
    950: '#000000',
  },
}
SCSS
$custom: #321b7c;
$custom-light: #745aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#321b7c",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 254.227,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32459,
    "c": 0.15175,
    "h": 285.1
  },
  "luminance": 0.02917
}

Semantic roles & 50–950 ramp

primary
#321B7C
secondary
#96B043
accent
#E741C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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