#321C77#321C77

#321C77 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.144 H 286.1°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#321C77
RGBrgb(50, 28, 119)
HSLhsl(255, 62%, 29%)
HSVhsv(255, 76%, 47%)
CMYKcmyk(58%, 76.5%, 0%, 53.3%)
CIE-LABlab(19.39, 35.53, -48.19)
CIE-LCHlch(19.39, 59.88, 306.40°)
OKLaboklab(32.08% 0.04 -0.1387)
OKLCHoklch(32.08% 0.144 286.1)
XYZxyz(5.0594, 2.8402, 17.7308)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C77 #61771C
analogous
#1C3477 #321C77 #601C77
triadic
#321C77 #77321C #1C7732
tetradic
#321C77 #771C34 #61771C #1C7760
square
#321C77 #771C34 #61771C #1C7760
split-complementary
#321C77 #77601C #34771C
monochromatic
#0A0619 #1D1045 #321C77 #4728A9 #603CD1

Accessibility & contrast

On white

13.39
#321C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#321C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C77
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C77#FFFFFF#000000##FFFFFF
##321C771.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#123548
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321c77;
/* rgb */ color: rgb(50, 28, 119);
/* oklch */ color: oklch(32.1% 0.144 286.1);
Tailwind
colors: {
  custom: {
    50: '#735b9f',
    500: '#321c77',
    950: '#000000',
  },
}
SCSS
$custom: #321c77;
$custom-light: #735b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#321c77",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 119
  },
  "hsl": {
    "h": 254.505,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32083,
    "c": 0.14436,
    "h": 286.1
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#321C77
secondary
#92AB44
accent
#E543BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #321C77

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

Preview Lab → · Contrast checker → · Palette generator →

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