#332178#332178

#332178 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.140 H 285.3°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#332178
RGBrgb(51, 33, 120)
HSLhsl(252, 57%, 30%)
HSVhsv(252, 73%, 47%)
CMYKcmyk(57.5%, 72.5%, 0%, 52.9%)
CIE-LABlab(20.62, 33.14, -46.81)
CIE-LCHlch(20.62, 57.35, 305.29°)
OKLaboklab(33.01% 0.0369 -0.1346)
OKLCHoklch(33.01% 0.14 285.3)
XYZxyz(5.2982, 3.1473, 18.0940)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332178 #667821
analogous
#213A78 #332178 #5F2178
triadic
#332178 #783321 #217833
tetradic
#332178 #78213A #667821 #21785F
square
#332178 #78213A #667821 #21785F
split-complementary
#332178 #785F21 #3A7821
monochromatic
#0A0718 #1F1448 #332178 #472EA8 #6347CC

Accessibility & contrast

On white

12.89
#332178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#332178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332178
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332178#FFFFFF#000000##FFFFFF
##3321781.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#14384A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #332178;
/* rgb */ color: rgb(51, 33, 120);
/* oklch */ color: oklch(33.0% 0.140 285.3);
Tailwind
colors: {
  custom: {
    50: '#735ea0',
    500: '#332178',
    950: '#000000',
  },
}
SCSS
$custom: #332178;
$custom-light: #735ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#332178",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 252.414,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.33013,
    "c": 0.1396,
    "h": 285.3
  },
  "luminance": 0.03148
}

Semantic roles & 50–950 ramp

primary
#332178
secondary
#97AB4A
accent
#E048C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #332178

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

Preview Lab → · Contrast checker → · Palette generator →

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