#321C7C#321C7C

#321C7C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.151 H 284.9°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#321C7C
RGBrgb(50, 28, 124)
HSLhsl(254, 63%, 30%)
HSVhsv(254, 77%, 49%)
CMYKcmyk(59.7%, 77.4%, 0%, 51.4%)
CIE-LABlab(19.90, 37.10, -50.56)
CIE-LCHlch(19.90, 62.71, 306.27°)
OKLaboklab(32.59% 0.0387 -0.1456)
OKLCHoklch(32.59% 0.151 284.9)
XYZxyz(5.3676, 2.9635, 19.3540)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C7C #667C1C
analogous
#1C367C #321C7C #621C7C
triadic
#321C7C #7C321C #1C7C32
tetradic
#321C7C #7C1C36 #667C1C #1C7C62
square
#321C7C #7C1C36 #667C1C #1C7C62
split-complementary
#321C7C #7C621C #367C1C
monochromatic
#0A0619 #1E114A #321C7C #4627AE #613FD4

Accessibility & contrast

On white

13.18
#321C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#321C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C7C
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C7C#FFFFFF#000000##FFFFFF
##321C7C1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#0A374B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321c7c;
/* rgb */ color: rgb(50, 28, 124);
/* oklch */ color: oklch(32.6% 0.151 284.9);
Tailwind
colors: {
  custom: {
    50: '#735ba3',
    500: '#321c7c',
    950: '#000000',
  },
}
SCSS
$custom: #321c7c;
$custom-light: #735ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#321c7c",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 253.75,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32593,
    "c": 0.15068,
    "h": 284.9
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#321C7C
secondary
#97B044
accent
#E642C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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