#321C66#321C66

#321C66 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.4% C 0.122 H 291.0°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#321C66
RGBrgb(50, 28, 102)
HSLhsl(258, 57%, 25%)
HSVhsv(258, 73%, 40%)
CMYKcmyk(51%, 72.5%, 0%, 60%)
CIE-LABlab(17.77, 30.19, -39.81)
CIE-LCHlch(17.77, 49.96, 307.17°)
OKLaboklab(30.43% 0.0438 -0.1141)
OKLCHoklch(30.43% 0.122 291)
XYZxyz(4.1282, 2.4678, 12.8266)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C66 #50661C
analogous
#1C2B66 #321C66 #571C66
triadic
#321C66 #66321C #1C6632
tetradic
#321C66 #661C2B #50661C #1C6657
square
#321C66 #661C2B #50661C #1C6657
split-complementary
#321C66 #66571C #2B661C
monochromatic
#0C0718 #1A0F36 #321C66 #4A2996 #6136C6

Accessibility & contrast

On white

14.06
#321C66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#321C66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C66
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C66#FFFFFF#000000##FFFFFF
##321C661.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#002A65
Tritanopia (blue-blind)
#212F3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321c66;
/* rgb */ color: rgb(50, 28, 102);
/* oklch */ color: oklch(30.4% 0.122 291.0);
Tailwind
colors: {
  custom: {
    50: '#705a92',
    500: '#321c66',
    950: '#000000',
  },
}
SCSS
$custom: #321c66;
$custom-light: #705a92;
$custom-dark: #000000;
JSON
{
  "hex": "#321c66",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 102
  },
  "hsl": {
    "h": 257.838,
    "s": 56.923,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30433,
    "c": 0.12223,
    "h": 291
  },
  "luminance": 0.02468
}

Semantic roles & 50–950 ramp

primary
#321C66
secondary
#819B43
accent
#E048B3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321C66

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

Preview Lab → · Contrast checker → · Palette generator →

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