#321557#321557

#321557 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.112 H 299.0°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#321557
RGBrgb(50, 21, 87)
HSLhsl(266, 61%, 21%)
HSVhsv(266, 76%, 34%)
CMYKcmyk(42.5%, 75.9%, 0%, 65.9%)
CIE-LABlab(14.97, 29.69, -34.40)
CIE-LCHlch(14.97, 45.44, 310.80°)
OKLaboklab(28.01% 0.0545 -0.0982)
OKLCHoklch(28.01% 0.112 299)
XYZxyz(3.3034, 1.9025, 9.2082)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321557 #3A5715
analogous
#151957 #321557 #531557
triadic
#321557 #573215 #155732
tetradic
#321557 #571519 #3A5715 #155753
square
#321557 #571519 #3A5715 #155753
split-complementary
#321557 #575315 #195715
monochromatic
#0E0619 #160926 #321557 #4E2188 #6B2DBA

Accessibility & contrast

On white

15.21
#321557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#321557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321557
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321557#FFFFFF#000000##FFFFFF
##3215571.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#292534
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321557;
/* rgb */ color: rgb(50, 21, 87);
/* oklch */ color: oklch(28.0% 0.112 299.0);
Tailwind
colors: {
  custom: {
    50: '#6e5587',
    500: '#321557',
    950: '#000000',
  },
}
SCSS
$custom: #321557;
$custom-light: #6e5587;
$custom-dark: #000000;
JSON
{
  "hex": "#321557",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 87
  },
  "hsl": {
    "h": 266.364,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28011,
    "c": 0.11227,
    "h": 299
  },
  "luminance": 0.01903
}

Semantic roles & 50–950 ramp

primary
#321557
secondary
#698F39
accent
#E4449E
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321557

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

Preview Lab → · Contrast checker → · Palette generator →

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