#321C79#321C79

#321C79 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.147 H 285.6°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#321C79
RGBrgb(50, 28, 121)
HSLhsl(254, 62%, 29%)
HSVhsv(254, 77%, 47%)
CMYKcmyk(58.7%, 76.9%, 0%, 52.5%)
CIE-LABlab(19.59, 36.16, -49.15)
CIE-LCHlch(19.59, 61.02, 306.35°)
OKLaboklab(32.29% 0.0395 -0.1415)
OKLCHoklch(32.29% 0.147 285.6)
XYZxyz(5.1808, 2.8888, 18.3701)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C79 #63791C
analogous
#1C3479 #321C79 #611C79
triadic
#321C79 #79321C #1C7932
tetradic
#321C79 #791C34 #63791C #1C7961
square
#321C79 #791C34 #63791C #1C7961
split-complementary
#321C79 #79611C #34791C
monochromatic
#0A0619 #1D1047 #321C79 #4728AB #603DD2

Accessibility & contrast

On white

13.31
#321C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C79
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C79#FFFFFF#000000##FFFFFF
##321C791.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#0F3649
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321c79;
/* rgb */ color: rgb(50, 28, 121);
/* oklch */ color: oklch(32.3% 0.147 285.6);
Tailwind
colors: {
  custom: {
    50: '#735ba1',
    500: '#321c79',
    950: '#000000',
  },
}
SCSS
$custom: #321c79;
$custom-light: #735ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#321c79",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 254.194,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32286,
    "c": 0.14689,
    "h": 285.6
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#321C79
secondary
#94AD44
accent
#E542BF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321C79

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

Preview Lab → · Contrast checker → · Palette generator →

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