#321A79#321A79

#321A79 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.149 H 286.0°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#321A79
RGBrgb(50, 26, 121)
HSLhsl(255, 65%, 29%)
HSVhsv(255, 79%, 47%)
CMYKcmyk(58.7%, 78.5%, 0%, 52.5%)
CIE-LABlab(19.21, 37.24, -49.77)
CIE-LCHlch(19.21, 62.16, 306.80°)
OKLaboklab(32.02% 0.0411 -0.1433)
OKLCHoklch(32.02% 0.149 286)
XYZxyz(5.1349, 2.7971, 18.3548)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A79 #61791A
analogous
#1A3279 #321A79 #621A79
triadic
#321A79 #79321A #1A7932
tetradic
#321A79 #791A32 #61791A #1A7962
square
#321A79 #791A32 #61791A #1A7962
split-complementary
#321A79 #79621A #32791A
monochromatic
#0A0519 #1D0F47 #321A79 #4725AB #6039D4

Accessibility & contrast

On white

13.47
#321A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#321A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A79
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A79#FFFFFF#000000##FFFFFF
##321A791.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#103548
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321a79;
/* rgb */ color: rgb(50, 26, 121);
/* oklch */ color: oklch(32.0% 0.149 286.0);
Tailwind
colors: {
  custom: {
    50: '#735aa1',
    500: '#321a79',
    950: '#000000',
  },
}
SCSS
$custom: #321a79;
$custom-light: #735aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#321a79",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 255.158,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32018,
    "c": 0.14908,
    "h": 286
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#321A79
secondary
#92AD41
accent
#E840BD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321A79

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

Preview Lab → · Contrast checker → · Palette generator →

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