#322166#322166

#322166 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.3% C 0.115 H 289.3°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#322166
RGBrgb(50, 33, 102)
HSLhsl(255, 51%, 26%)
HSVhsv(255, 68%, 40%)
CMYKcmyk(51%, 67.6%, 0%, 60%)
CIE-LABlab(18.91, 27.10, -37.97)
CIE-LCHlch(18.91, 46.65, 305.52°)
OKLaboklab(31.25% 0.0381 -0.1087)
OKLCHoklch(31.25% 0.115 289.3)
XYZxyz(4.2568, 2.7250, 12.8695)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322166 #556621
analogous
#213366 #322166 #552166
triadic
#322166 #663221 #216632
tetradic
#322166 #662133 #556621 #216655
square
#322166 #662133 #556621 #216655
split-complementary
#322166 #665521 #336621
monochromatic
#0B0717 #1B1238 #322166 #493094 #6040C1

Accessibility & contrast

On white

13.59
#322166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#322166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322166
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322166#FFFFFF#000000##FFFFFF
##3221661.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F68
Deuteranopia (green-blind)
#002C65
Tritanopia (blue-blind)
#213140
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #322166;
/* rgb */ color: rgb(50, 33, 102);
/* oklch */ color: oklch(31.3% 0.115 289.3);
Tailwind
colors: {
  custom: {
    50: '#6f5d92',
    500: '#322166',
    950: '#000000',
  },
}
SCSS
$custom: #322166;
$custom-light: #6f5d92;
$custom-dark: #000000;
JSON
{
  "hex": "#322166",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 102
  },
  "hsl": {
    "h": 254.783,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31251,
    "c": 0.1152,
    "h": 289.3
  },
  "luminance": 0.02725
}

Semantic roles & 50–950 ramp

primary
#322166
secondary
#869A49
accent
#DB4DB8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #322166

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

Preview Lab → · Contrast checker → · Palette generator →

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