#332182#332182

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

Color values

HEX#332182
RGBrgb(51, 33, 130)
HSLhsl(251, 60%, 32%)
HSVhsv(251, 75%, 51%)
CMYKcmyk(60.8%, 74.6%, 0%, 49%)
CIE-LABlab(21.59, 36.36, -51.58)
CIE-LCHlch(21.59, 63.11, 305.18°)
OKLaboklab(34% 0.0348 -0.1486)
OKLCHoklch(34% 0.153 283.2)
XYZxyz(5.9371, 3.4028, 21.4587)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332182 #708221
analogous
#214082 #332182 #642182
triadic
#332182 #823321 #218233
tetradic
#332182 #822140 #708221 #218264
square
#332182 #822140 #708221 #218264
split-complementary
#332182 #826421 #408221
monochromatic
#0D0820 #201551 #332182 #462DB3 #654CD2

Accessibility & contrast

On white

12.50
#332182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332182
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332182#FFFFFF#000000##FFFFFF
##3321821.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#023C4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #332182;
/* rgb */ color: rgb(51, 33, 130);
/* oklch */ color: oklch(34.0% 0.153 283.2);
Tailwind
colors: {
  custom: {
    50: '#755ea7',
    500: '#332182',
    950: '#000000',
  },
}
SCSS
$custom: #332182;
$custom-light: #755ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#332182",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 251.134,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33996,
    "c": 0.15262,
    "h": 283.2
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#332182
secondary
#A1B44A
accent
#E345C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #332182

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

Preview Lab → · Contrast checker → · Palette generator →

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