#332088#332088

#332088 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.161 H 282.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#332088
RGBrgb(51, 32, 136)
HSLhsl(251, 62%, 33%)
HSVhsv(251, 76%, 53%)
CMYKcmyk(62.5%, 76.5%, 0%, 46.7%)
CIE-LABlab(21.99, 38.84, -54.69)
CIE-LCHlch(21.99, 67.07, 305.38°)
OKLaboklab(34.47% 0.0341 -0.1577)
OKLCHoklch(34.47% 0.161 282.2)
XYZxyz(6.3243, 3.5140, 23.6328)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332088 #758820
analogous
#204188 #332088 #672088
triadic
#332088 #883320 #208833
tetradic
#332088 #882041 #758820 #208867
square
#332088 #882041 #758820 #208867
split-complementary
#332088 #886720 #418820
monochromatic
#0E0925 #201456 #332088 #462CBA #664DD5

Accessibility & contrast

On white

12.33
#332088 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#332088 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332088
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332088#FFFFFF#000000##FFFFFF
##3320881.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332088;
/* rgb */ color: rgb(51, 32, 136);
/* oklch */ color: oklch(34.5% 0.161 282.2);
Tailwind
colors: {
  custom: {
    50: '#765eac',
    500: '#332088',
    950: '#000000',
  },
}
SCSS
$custom: #332088;
$custom-light: #765eac;
$custom-dark: #000000;
JSON
{
  "hex": "#332088",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 136
  },
  "hsl": {
    "h": 250.962,
    "s": 61.905,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34465,
    "c": 0.16133,
    "h": 282.2
  },
  "luminance": 0.03514
}

Semantic roles & 50–950 ramp

primary
#332088
secondary
#A4B84C
accent
#E543C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #332088

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

Preview Lab → · Contrast checker → · Palette generator →

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