#332188#332188

#332188 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.160 H 282.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#332188
RGBrgb(51, 33, 136)
HSLhsl(250, 61%, 33%)
HSVhsv(250, 76%, 53%)
CMYKcmyk(62.5%, 75.7%, 0%, 46.7%)
CIE-LABlab(22.19, 38.29, -54.36)
CIE-LCHlch(22.19, 66.49, 305.16°)
OKLaboklab(34.6% 0.0334 -0.1567)
OKLCHoklch(34.6% 0.16 282)
XYZxyz(6.3516, 3.5686, 23.6419)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332188 #768821
analogous
#214388 #332188 #662188
triadic
#332188 #883321 #218833
tetradic
#332188 #882143 #768821 #218866
square
#332188 #882143 #768821 #218866
split-complementary
#332188 #886621 #438821
monochromatic
#0E0925 #211557 #332188 #452DB9 #664FD4

Accessibility & contrast

On white

12.25
#332188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#332188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332188
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332188#FFFFFF#000000##FFFFFF
##3321881.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #332188;
/* rgb */ color: rgb(51, 33, 136);
/* oklch */ color: oklch(34.6% 0.160 282.0);
Tailwind
colors: {
  custom: {
    50: '#765fac',
    500: '#332188',
    950: '#000000',
  },
}
SCSS
$custom: #332188;
$custom-light: #765fac;
$custom-dark: #000000;
JSON
{
  "hex": "#332188",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 250.485,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34604,
    "c": 0.16026,
    "h": 282
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#332188
secondary
#A5B84D
accent
#E444C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332188

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

Preview Lab → · Contrast checker → · Palette generator →

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