#321C73#321C73

#321C73 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.139 H 287.1°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#321C73
RGBrgb(50, 28, 115)
HSLhsl(255, 61%, 28%)
HSVhsv(255, 76%, 45%)
CMYKcmyk(56.5%, 75.7%, 0%, 54.9%)
CIE-LABlab(19.00, 34.27, -46.27)
CIE-LCHlch(19.00, 57.58, 306.53°)
OKLaboklab(31.68% 0.041 -0.1331)
OKLCHoklch(31.68% 0.139 287.1)
XYZxyz(4.8242, 2.7462, 16.4922)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C73 #5D731C
analogous
#1C3273 #321C73 #5D1C73
triadic
#321C73 #73321C #1C7332
tetradic
#321C73 #731C32 #5D731C #1C735D
square
#321C73 #731C32 #5D731C #1C735D
split-complementary
#321C73 #735D1C #32731C
monochromatic
#0B0619 #1D1042 #321C73 #4728A4 #603ACF

Accessibility & contrast

On white

13.56
#321C73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#321C73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C73
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C73#FFFFFF#000000##FFFFFF
##321C731.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#173345
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321c73;
/* rgb */ color: rgb(50, 28, 115);
/* oklch */ color: oklch(31.7% 0.139 287.1);
Tailwind
colors: {
  custom: {
    50: '#725a9c',
    500: '#321c73',
    950: '#000000',
  },
}
SCSS
$custom: #321c73;
$custom-light: #725a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#321c73",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 115
  },
  "hsl": {
    "h": 255.172,
    "s": 60.839,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31683,
    "c": 0.13924,
    "h": 287.1
  },
  "luminance": 0.02746
}

Semantic roles & 50–950 ramp

primary
#321C73
secondary
#8EA743
accent
#E444BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321C73

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

Preview Lab → · Contrast checker → · Palette generator →

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