#332084#332084

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

Color values

HEX#332084
RGBrgb(51, 32, 132)
HSLhsl(251, 61%, 32%)
HSVhsv(251, 76%, 52%)
CMYKcmyk(61.4%, 75.8%, 0%, 48.2%)
CIE-LABlab(21.59, 37.57, -52.84)
CIE-LCHlch(21.59, 64.83, 305.41°)
OKLaboklab(34.06% 0.0351 -0.1523)
OKLCHoklch(34.06% 0.156 283)
XYZxyz(6.0453, 3.4024, 22.1635)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332084 #718420
analogous
#203F84 #332084 #652084
triadic
#332084 #843320 #208433
tetradic
#332084 #84203F #718420 #208465
square
#332084 #84203F #718420 #208465
split-complementary
#332084 #846520 #3F8420
monochromatic
#0D0821 #201453 #332084 #462CB5 #654BD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##332084#FFFFFF#000000##FFFFFF
##3320841.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)
#003787
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #332084;
/* rgb */ color: rgb(51, 32, 132);
/* oklch */ color: oklch(34.1% 0.156 283.0);
Tailwind
colors: {
  custom: {
    50: '#755ea9',
    500: '#332084',
    950: '#000000',
  },
}
SCSS
$custom: #332084;
$custom-light: #755ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#332084",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 132
  },
  "hsl": {
    "h": 251.4,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34055,
    "c": 0.15628,
    "h": 283
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#332084
secondary
#A2B64A
accent
#E444C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #332084

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

Preview Lab → · Contrast checker → · Palette generator →

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