#321C7F#321C7F

#321C7F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.154 H 284.2°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#321C7F
RGBrgb(50, 28, 127)
HSLhsl(253, 64%, 30%)
HSVhsv(253, 78%, 50%)
CMYKcmyk(60.6%, 78%, 0%, 50.2%)
CIE-LABlab(20.21, 38.04, -51.96)
CIE-LCHlch(20.21, 64.40, 306.21°)
OKLaboklab(32.9% 0.0379 -0.1497)
OKLCHoklch(32.9% 0.154 284.2)
XYZxyz(5.5602, 3.0406, 20.3685)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C7F #697F1C
analogous
#1C387F #321C7F #631C7F
triadic
#321C7F #7F321C #1C7F32
tetradic
#321C7F #7F1C38 #697F1C #1C7F63
square
#321C7F #7F1C38 #697F1C #1C7F63
split-complementary
#321C7F #7F631C #387F1C
monochromatic
#0B061B #1E114D #321C7F #4627B1 #6140D5

Accessibility & contrast

On white

13.06
#321C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#321C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C7F
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C7F#FFFFFF#000000##FFFFFF
##321C7F1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#04384C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321c7f;
/* rgb */ color: rgb(50, 28, 127);
/* oklch */ color: oklch(32.9% 0.154 284.2);
Tailwind
colors: {
  custom: {
    50: '#745ba5',
    500: '#321c7f',
    950: '#000000',
  },
}
SCSS
$custom: #321c7f;
$custom-light: #745ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#321c7f",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 253.333,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32903,
    "c": 0.15443,
    "h": 284.2
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#321C7F
secondary
#9AB344
accent
#E741C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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