#322152#322152

#322152 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.6% C 0.086 H 296.8°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#322152
RGBrgb(50, 33, 82)
HSLhsl(261, 43%, 23%)
HSVhsv(261, 60%, 32%)
CMYKcmyk(39%, 59.8%, 0%, 67.8%)
CIE-LABlab(17.34, 20.73, -27.18)
CIE-LCHlch(17.34, 34.18, 307.33°)
OKLaboklab(29.61% 0.0389 -0.077)
OKLCHoklch(29.61% 0.086 296.8)
XYZxyz(3.3819, 2.3750, 8.2612)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322152 #415221
analogous
#212952 #322152 #4A2152
triadic
#322152 #523221 #215232
tetradic
#322152 #522129 #415221 #21524A
square
#322152 #522129 #415221 #21524A
split-complementary
#322152 #524A21 #295221
monochromatic
#0D0916 #170F26 #322152 #4D337E #6744A9

Accessibility & contrast

On white

14.24
#322152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#322152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322152
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322152#FFFFFF#000000##FFFFFF
##3221521.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2B54
Deuteranopia (green-blind)
#112A51
Tritanopia (blue-blind)
#2B2B36
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #322152;
/* rgb */ color: rgb(50, 33, 82);
/* oklch */ color: oklch(29.6% 0.086 296.8);
Tailwind
colors: {
  custom: {
    50: '#6c5d83',
    500: '#322152',
    950: '#000000',
  },
}
SCSS
$custom: #322152;
$custom-light: #6c5d83;
$custom-dark: #000000;
JSON
{
  "hex": "#322152",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 260.816,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.2961,
    "c": 0.08626,
    "h": 296.8
  },
  "luminance": 0.02375
}

Semantic roles & 50–950 ramp

primary
#322152
secondary
#718649
accent
#D255A7
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040A
muted
#7A797C

Preview Lab

Preview with #322152

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

Preview Lab → · Contrast checker → · Palette generator →

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