#321C7A#321C7A

#321C7A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.148 H 285.4°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#321C7A
RGBrgb(50, 28, 122)
HSLhsl(254, 63%, 29%)
HSVhsv(254, 77%, 48%)
CMYKcmyk(59%, 77%, 0%, 52.2%)
CIE-LABlab(19.69, 36.48, -49.62)
CIE-LCHlch(19.69, 61.58, 306.32°)
OKLaboklab(32.39% 0.0392 -0.1429)
OKLCHoklch(32.39% 0.148 285.4)
XYZxyz(5.2424, 2.9134, 18.6947)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C7A #647A1C
analogous
#1C357A #321C7A #611C7A
triadic
#321C7A #7A321C #1C7A32
tetradic
#321C7A #7A1C35 #647A1C #1C7A61
square
#321C7A #7A1C35 #647A1C #1C7A61
split-complementary
#321C7A #7A611C #357A1C
monochromatic
#0A0619 #1E1148 #321C7A #4627AC #613ED3

Accessibility & contrast

On white

13.27
#321C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C7A
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C7A#FFFFFF#000000##FFFFFF
##321C7A1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#0E3649
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321c7a;
/* rgb */ color: rgb(50, 28, 122);
/* oklch */ color: oklch(32.4% 0.148 285.4);
Tailwind
colors: {
  custom: {
    50: '#735ba1',
    500: '#321c7a',
    950: '#000000',
  },
}
SCSS
$custom: #321c7a;
$custom-light: #735ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#321c7a",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 254.043,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32388,
    "c": 0.14816,
    "h": 285.4
  },
  "luminance": 0.02914
}

Semantic roles & 50–950 ramp

primary
#321C7A
secondary
#95AE44
accent
#E642BF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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