#321A7B#321A7B

#321A7B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.152 H 285.5°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#321A7B
RGBrgb(50, 26, 123)
HSLhsl(255, 65%, 29%)
HSVhsv(255, 79%, 48%)
CMYKcmyk(59.3%, 78.9%, 0%, 51.8%)
CIE-LABlab(19.42, 37.86, -50.71)
CIE-LCHlch(19.42, 63.28, 306.74°)
OKLaboklab(32.23% 0.0405 -0.146)
OKLCHoklch(32.23% 0.152 285.5)
XYZxyz(5.2589, 2.8466, 19.0074)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A7B #637B1A
analogous
#1A337B #321A7B #631A7B
triadic
#321A7B #7B321A #1A7B32
tetradic
#321A7B #7B1A33 #637B1A #1A7B63
square
#321A7B #7B1A33 #637B1A #1A7B63
split-complementary
#321A7B #7B631A #337B1A
monochromatic
#0A0519 #1D0F48 #321A7B #4725AE #603AD5

Accessibility & contrast

On white

13.38
#321A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#321A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A7B
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A7B#FFFFFF#000000##FFFFFF
##321A7B1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321a7b;
/* rgb */ color: rgb(50, 26, 123);
/* oklch */ color: oklch(32.2% 0.152 285.5);
Tailwind
colors: {
  custom: {
    50: '#735aa2',
    500: '#321a7b',
    950: '#000000',
  },
}
SCSS
$custom: #321a7b;
$custom-light: #735aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#321a7b",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 254.845,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32225,
    "c": 0.15156,
    "h": 285.5
  },
  "luminance": 0.02847
}

Semantic roles & 50–950 ramp

primary
#321A7B
secondary
#94AF42
accent
#E840BE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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