#321554#321554

#321554 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.108 H 300.5°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#321554
RGBrgb(50, 21, 84)
HSLhsl(268, 60%, 21%)
HSVhsv(268, 75%, 33%)
CMYKcmyk(40.5%, 75%, 0%, 67.1%)
CIE-LABlab(14.70, 28.82, -32.79)
CIE-LCHlch(14.70, 43.66, 311.32°)
OKLaboklab(27.74% 0.055 -0.0934)
OKLCHoklch(27.74% 0.108 300.5)
XYZxyz(3.1834, 1.8545, 8.5760)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321554 #375415
analogous
#151754 #321554 #511554
triadic
#321554 #543215 #155432
tetradic
#321554 #541517 #375415 #155451
square
#321554 #541517 #375415 #155451
split-complementary
#321554 #545115 #175415
monochromatic
#0F0618 #150923 #321554 #4F2185 #6C2DB6

Accessibility & contrast

On white

15.32
#321554 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#321554 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321554
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321554#FFFFFF#000000##FFFFFF
##3215541.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002553
Tritanopia (blue-blind)
#2A2432
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321554;
/* rgb */ color: rgb(50, 21, 84);
/* oklch */ color: oklch(27.7% 0.108 300.5);
Tailwind
colors: {
  custom: {
    50: '#6d5585',
    500: '#321554',
    950: '#000000',
  },
}
SCSS
$custom: #321554;
$custom-light: #6d5585;
$custom-dark: #000000;
JSON
{
  "hex": "#321554",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 84
  },
  "hsl": {
    "h": 267.619,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27741,
    "c": 0.10845,
    "h": 300.5
  },
  "luminance": 0.01855
}

Semantic roles & 50–950 ramp

primary
#321554
secondary
#668C39
accent
#E3459A
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321554

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

Preview Lab → · Contrast checker → · Palette generator →

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