#321C5A#321C5A

#321C5A is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.4% C 0.106 H 295.4°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#321C5A
RGBrgb(50, 28, 90)
HSLhsl(261, 53%, 23%)
HSVhsv(261, 69%, 35%)
CMYKcmyk(44.4%, 68.9%, 0%, 64.7%)
CIE-LABlab(16.73, 26.45, -33.55)
CIE-LCHlch(16.73, 42.72, 308.25°)
OKLaboklab(29.36% 0.0455 -0.0957)
OKLCHoklch(29.36% 0.106 295.4)
XYZxyz(3.5756, 2.2467, 9.9161)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C5A #445A1C
analogous
#1C255A #321C5A #511C5A
triadic
#321C5A #5A321C #1C5A32
tetradic
#321C5A #5A1C25 #445A1C #1C5A51
square
#321C5A #5A1C25 #445A1C #1C5A51
split-complementary
#321C5A #5A511C #255A1C
monochromatic
#0D0717 #180D2B #321C5A #4C2B89 #6639B7

Accessibility & contrast

On white

14.49
#321C5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#321C5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C5A
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C5A#FFFFFF#000000##FFFFFF
##321C5A1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#002859
Tritanopia (blue-blind)
#282A38
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321c5a;
/* rgb */ color: rgb(50, 28, 90);
/* oklch */ color: oklch(29.4% 0.106 295.4);
Tailwind
colors: {
  custom: {
    50: '#6e5989',
    500: '#321c5a',
    950: '#000000',
  },
}
SCSS
$custom: #321c5a;
$custom-light: #6e5989;
$custom-dark: #000000;
JSON
{
  "hex": "#321c5a",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 90
  },
  "hsl": {
    "h": 261.29,
    "s": 52.542,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29359,
    "c": 0.10597,
    "h": 295.4
  },
  "luminance": 0.02247
}

Semantic roles & 50–950 ramp

primary
#321C5A
secondary
#748F42
accent
#DC4CA9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321C5A

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

Preview Lab → · Contrast checker → · Palette generator →

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