#322156#322156

#322156 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.9% C 0.092 H 295.0°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#322156
RGBrgb(50, 33, 86)
HSLhsl(259, 45%, 23%)
HSVhsv(259, 62%, 34%)
CMYKcmyk(41.9%, 61.6%, 0%, 66.3%)
CIE-LABlab(17.63, 21.98, -29.41)
CIE-LCHlch(17.63, 36.72, 306.77°)
OKLaboklab(29.92% 0.039 -0.0835)
OKLCHoklch(29.92% 0.092 295)
XYZxyz(3.5385, 2.4376, 9.0864)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322156 #455621
analogous
#212A56 #322156 #4C2156
triadic
#322156 #563221 #215632
tetradic
#322156 #56212A #455621 #21564C
square
#322156 #56212A #455621 #21564C
split-complementary
#322156 #564C21 #2A5621
monochromatic
#0D0816 #18102A #322156 #4C3282 #6543AE

Accessibility & contrast

On white

14.12
#322156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#322156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322156
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322156#FFFFFF#000000##FFFFFF
##3221561.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062C58
Deuteranopia (green-blind)
#0C2A55
Tritanopia (blue-blind)
#292C38
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #322156;
/* rgb */ color: rgb(50, 33, 86);
/* oklch */ color: oklch(29.9% 0.092 295.0);
Tailwind
colors: {
  custom: {
    50: '#6d5d86',
    500: '#322156',
    950: '#000000',
  },
}
SCSS
$custom: #322156;
$custom-light: #6d5d86;
$custom-dark: #000000;
JSON
{
  "hex": "#322156",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 259.245,
    "s": 44.538,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29917,
    "c": 0.09218,
    "h": 295
  },
  "luminance": 0.02438
}

Semantic roles & 50–950 ramp

primary
#322156
secondary
#758A49
accent
#D454AB
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #322156

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

Preview Lab → · Contrast checker → · Palette generator →

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