#332082#332082

#332082 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.154 H 283.4°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#332082
RGBrgb(51, 32, 130)
HSLhsl(252, 60%, 32%)
HSVhsv(252, 75%, 51%)
CMYKcmyk(60.8%, 75.4%, 0%, 49%)
CIE-LABlab(21.39, 36.93, -51.91)
CIE-LCHlch(21.39, 63.71, 305.43°)
OKLaboklab(33.85% 0.0356 -0.1496)
OKLCHoklch(33.85% 0.154 283.4)
XYZxyz(5.9098, 3.3482, 21.4496)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332082 #6F8220
analogous
#203E82 #332082 #642082
triadic
#332082 #823320 #208233
tetradic
#332082 #82203E #6F8220 #208264
square
#332082 #82203E #6F8220 #208264
split-complementary
#332082 #826420 #3E8220
monochromatic
#0C0820 #201451 #332082 #462CB3 #644AD2

Accessibility & contrast

On white

12.58
#332082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#332082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332082
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332082#FFFFFF#000000##FFFFFF
##3320821.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#023B4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #332082;
/* rgb */ color: rgb(51, 32, 130);
/* oklch */ color: oklch(33.9% 0.154 283.4);
Tailwind
colors: {
  custom: {
    50: '#755ea7',
    500: '#332082',
    950: '#000000',
  },
}
SCSS
$custom: #332082;
$custom-light: #755ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#332082",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 251.633,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33853,
    "c": 0.15375,
    "h": 283.4
  },
  "luminance": 0.03349
}

Semantic roles & 50–950 ramp

primary
#332082
secondary
#A0B549
accent
#E444C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #332082

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

Preview Lab → · Contrast checker → · Palette generator →

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