#322281#322281

#322281 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.150 H 282.6°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#322281
RGBrgb(50, 34, 129)
HSLhsl(250, 58%, 32%)
HSVhsv(250, 74%, 51%)
CMYKcmyk(61.2%, 73.6%, 0%, 49.4%)
CIE-LABlab(21.60, 35.31, -50.93)
CIE-LCHlch(21.60, 61.97, 304.73°)
OKLaboklab(33.95% 0.0327 -0.1467)
OKLCHoklch(33.95% 0.15 282.6)
XYZxyz(5.8486, 3.4068, 21.1140)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322281 #718122
analogous
#224281 #322281 #622281
triadic
#322281 #813222 #228132
tetradic
#322281 #812242 #718122 #228162
square
#322281 #812242 #718122 #228162
split-complementary
#322281 #816222 #428122
monochromatic
#0C0820 #1F1551 #322281 #452FB1 #634DD0

Accessibility & contrast

On white

12.49
#322281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#322281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322281
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322281#FFFFFF#000000##FFFFFF
##3222811.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #322281;
/* rgb */ color: rgb(50, 34, 129);
/* oklch */ color: oklch(34.0% 0.150 282.6);
Tailwind
colors: {
  custom: {
    50: '#745fa7',
    500: '#322281',
    950: '#000000',
  },
}
SCSS
$custom: #322281;
$custom-light: #745fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#322281",
  "rgb": {
    "r": 50,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 250.105,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33953,
    "c": 0.15033,
    "h": 282.6
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#322281
secondary
#A2B34B
accent
#E146C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #322281

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

Preview Lab → · Contrast checker → · Palette generator →

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