#322168#322168

#322168 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.4% C 0.118 H 288.7°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#322168
RGBrgb(50, 33, 104)
HSLhsl(254, 52%, 27%)
HSVhsv(254, 68%, 41%)
CMYKcmyk(51.9%, 68.3%, 0%, 59.2%)
CIE-LABlab(19.08, 27.75, -39.00)
CIE-LCHlch(19.08, 47.87, 305.44°)
OKLaboklab(31.43% 0.0379 -0.1117)
OKLCHoklch(31.43% 0.118 288.7)
XYZxyz(4.3572, 2.7651, 13.3982)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322168 #576821
analogous
#213468 #322168 #562168
triadic
#322168 #683221 #216832
tetradic
#322168 #682134 #576821 #216856
square
#322168 #682134 #576821 #216856
split-complementary
#322168 #685621 #346821
monochromatic
#0B0717 #1C123A #322168 #483096 #6041C3

Accessibility & contrast

On white

13.52
#322168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #322168
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322168#FFFFFF#000000##FFFFFF
##3221681.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#002D67
Tritanopia (blue-blind)
#203241
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #322168;
/* rgb */ color: rgb(50, 33, 104);
/* oklch */ color: oklch(31.4% 0.118 288.7);
Tailwind
colors: {
  custom: {
    50: '#6f5d94',
    500: '#322168',
    950: '#000000',
  },
}
SCSS
$custom: #322168;
$custom-light: #6f5d94;
$custom-dark: #000000;
JSON
{
  "hex": "#322168",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 254.366,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31428,
    "c": 0.11799,
    "h": 288.7
  },
  "luminance": 0.02765
}

Semantic roles & 50–950 ramp

primary
#322168
secondary
#889C49
accent
#DB4DB9
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #322168

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

Preview Lab → · Contrast checker → · Palette generator →

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