#321559#321559

#321559 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.115 H 298.1°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#321559
RGBrgb(50, 21, 89)
HSLhsl(266, 62%, 22%)
HSVhsv(266, 76%, 35%)
CMYKcmyk(43.8%, 76.4%, 0%, 65.1%)
CIE-LABlab(15.15, 30.27, -35.45)
CIE-LCHlch(15.15, 46.62, 310.50°)
OKLaboklab(28.19% 0.0541 -0.1013)
OKLCHoklch(28.19% 0.115 298.1)
XYZxyz(3.3863, 1.9357, 9.6445)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321559 #3C5915
analogous
#151A59 #321559 #541559
triadic
#321559 #593215 #155932
tetradic
#321559 #59151A #3C5915 #155954
square
#321559 #59151A #3C5915 #155954
split-complementary
#321559 #595415 #1A5915
monochromatic
#0E0619 #160927 #321559 #4E218B #6A2CBC

Accessibility & contrast

On white

15.14
#321559 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#321559 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321559
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321559#FFFFFF#000000##FFFFFF
##3215591.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#282635
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321559;
/* rgb */ color: rgb(50, 21, 89);
/* oklch */ color: oklch(28.2% 0.115 298.1);
Tailwind
colors: {
  custom: {
    50: '#6e5588',
    500: '#321559',
    950: '#000000',
  },
}
SCSS
$custom: #321559;
$custom-light: #6e5588;
$custom-dark: #000000;
JSON
{
  "hex": "#321559",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 89
  },
  "hsl": {
    "h": 265.588,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28194,
    "c": 0.1148,
    "h": 298.1
  },
  "luminance": 0.01936
}

Semantic roles & 50–950 ramp

primary
#321559
secondary
#6B9139
accent
#E543A0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321559

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

Preview Lab → · Contrast checker → · Palette generator →

#321559 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva