#322151#322151

#322151 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.5% C 0.085 H 297.3°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#322151
RGBrgb(50, 33, 81)
HSLhsl(261, 42%, 22%)
HSVhsv(261, 59%, 32%)
CMYKcmyk(38.3%, 59.3%, 0%, 68.2%)
CIE-LABlab(17.27, 20.42, -26.62)
CIE-LCHlch(17.27, 33.55, 307.50°)
OKLaboklab(29.53% 0.0389 -0.0753)
OKLCHoklch(29.53% 0.085 297.3)
XYZxyz(3.3441, 2.3599, 8.0623)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322151 #405121
analogous
#212851 #322151 #4A2151
triadic
#322151 #513221 #215132
tetradic
#322151 #512128 #405121 #21514A
square
#322151 #512128 #405121 #21514A
split-complementary
#322151 #514A21 #285121
monochromatic
#0D0916 #170F26 #322151 #4D337C #6844A8

Accessibility & contrast

On white

14.27
#322151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#322151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322151
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322151#FFFFFF#000000##FFFFFF
##3221511.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2B53
Deuteranopia (green-blind)
#122A50
Tritanopia (blue-blind)
#2B2B35
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #322151;
/* rgb */ color: rgb(50, 33, 81);
/* oklch */ color: oklch(29.5% 0.085 297.3);
Tailwind
colors: {
  custom: {
    50: '#6c5d82',
    500: '#322151',
    950: '#000000',
  },
}
SCSS
$custom: #322151;
$custom-light: #6c5d82;
$custom-dark: #000000;
JSON
{
  "hex": "#322151",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 81
  },
  "hsl": {
    "h": 261.25,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29534,
    "c": 0.08477,
    "h": 297.3
  },
  "luminance": 0.0236
}

Semantic roles & 50–950 ramp

primary
#322151
secondary
#708549
accent
#D256A6
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040A
muted
#7A797C

Preview Lab

Preview with #322151

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

Preview Lab → · Contrast checker → · Palette generator →

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