#322161#322161

#322161 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.8% C 0.108 H 290.9°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#322161
RGBrgb(50, 33, 97)
HSLhsl(256, 49%, 25%)
HSVhsv(256, 66%, 38%)
CMYKcmyk(48.5%, 66%, 0%, 62%)
CIE-LABlab(18.49, 25.48, -35.35)
CIE-LCHlch(18.49, 43.58, 305.79°)
OKLaboklab(30.82% 0.0386 -0.101)
OKLCHoklch(30.82% 0.108 290.9)
XYZxyz(4.0163, 2.6288, 11.6027)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322161 #506121
analogous
#213061 #322161 #522161
triadic
#322161 #613221 #216132
tetradic
#322161 #612130 #506121 #216152
square
#322161 #612130 #506121 #216152
split-complementary
#322161 #615221 #306121
monochromatic
#0C0817 #1A1133 #322161 #4A318F #6140BC

Accessibility & contrast

On white

13.76
#322161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#322161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322161
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322161#FFFFFF#000000##FFFFFF
##3221611.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E63
Deuteranopia (green-blind)
#002C60
Tritanopia (blue-blind)
#24303D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #322161;
/* rgb */ color: rgb(50, 33, 97);
/* oklch */ color: oklch(30.8% 0.108 290.9);
Tailwind
colors: {
  custom: {
    50: '#6e5d8e',
    500: '#322161',
    950: '#000000',
  },
}
SCSS
$custom: #322161;
$custom-light: #6e5d8e;
$custom-dark: #000000;
JSON
{
  "hex": "#322161",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 255.938,
    "s": 49.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30817,
    "c": 0.10813,
    "h": 290.9
  },
  "luminance": 0.02629
}

Semantic roles & 50–950 ramp

primary
#322161
secondary
#819549
accent
#D94FB4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #322161

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

Preview Lab → · Contrast checker → · Palette generator →

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