#321556#321556

#321556 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.111 H 299.5°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#321556
RGBrgb(50, 21, 86)
HSLhsl(267, 61%, 21%)
HSVhsv(267, 76%, 34%)
CMYKcmyk(41.9%, 75.6%, 0%, 66.3%)
CIE-LABlab(14.88, 29.40, -33.86)
CIE-LCHlch(14.88, 44.85, 310.97°)
OKLaboklab(27.92% 0.0547 -0.0966)
OKLCHoklch(27.92% 0.111 299.5)
XYZxyz(3.2629, 1.8863, 8.9945)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321556 #395615
analogous
#151856 #321556 #521556
triadic
#321556 #563215 #155632
tetradic
#321556 #561518 #395615 #155652
square
#321556 #561518 #395615 #155652
split-complementary
#321556 #565215 #185615
monochromatic
#0E0619 #150925 #321556 #4F2187 #6B2DB8

Accessibility & contrast

On white

15.25
#321556 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321556
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321556#FFFFFF#000000##FFFFFF
##3215561.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#2A2533
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321556;
/* rgb */ color: rgb(50, 21, 86);
/* oklch */ color: oklch(27.9% 0.111 299.5);
Tailwind
colors: {
  custom: {
    50: '#6e5586',
    500: '#321556',
    950: '#000000',
  },
}
SCSS
$custom: #321556;
$custom-light: #6e5586;
$custom-dark: #000000;
JSON
{
  "hex": "#321556",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 86
  },
  "hsl": {
    "h": 266.769,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2792,
    "c": 0.111,
    "h": 299.5
  },
  "luminance": 0.01886
}

Semantic roles & 50–950 ramp

primary
#321556
secondary
#688E39
accent
#E4449D
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321556

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

Preview Lab → · Contrast checker → · Palette generator →

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