#321C7B#321C7B

#321C7B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.149 H 285.1°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#321C7B
RGBrgb(50, 28, 123)
HSLhsl(254, 63%, 30%)
HSVhsv(254, 77%, 48%)
CMYKcmyk(59.3%, 77.2%, 0%, 51.8%)
CIE-LABlab(19.80, 36.79, -50.09)
CIE-LCHlch(19.80, 62.15, 306.29°)
OKLaboklab(32.49% 0.039 -0.1442)
OKLCHoklch(32.49% 0.149 285.1)
XYZxyz(5.3047, 2.9384, 19.0227)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C7B #657B1C
analogous
#1C357B #321C7B #621C7B
triadic
#321C7B #7B321C #1C7B32
tetradic
#321C7B #7B1C35 #657B1C #1C7B62
square
#321C7B #7B1C35 #657B1C #1C7B62
split-complementary
#321C7B #7B621C #357B1C
monochromatic
#0A0619 #1E1149 #321C7B #4627AD #613ED3

Accessibility & contrast

On white

13.23
#321C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C7B
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C7B#FFFFFF#000000##FFFFFF
##321C7B1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#0C364A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321c7b;
/* rgb */ color: rgb(50, 28, 123);
/* oklch */ color: oklch(32.5% 0.149 285.1);
Tailwind
colors: {
  custom: {
    50: '#735ba2',
    500: '#321c7b',
    950: '#000000',
  },
}
SCSS
$custom: #321c7b;
$custom-light: #735ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#321c7b",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 253.895,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3249,
    "c": 0.14942,
    "h": 285.1
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#321C7B
secondary
#96AF44
accent
#E642C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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