#332089#332089

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

Color values

HEX#332089
RGBrgb(51, 32, 137)
HSLhsl(251, 62%, 33%)
HSVhsv(251, 77%, 54%)
CMYKcmyk(62.8%, 76.6%, 0%, 46.3%)
CIE-LABlab(22.10, 39.16, -55.14)
CIE-LCHlch(22.10, 67.63, 305.38°)
OKLaboklab(34.57% 0.0339 -0.159)
OKLCHoklch(34.57% 0.163 282)
XYZxyz(6.3957, 3.5425, 24.0088)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332089 #768920
analogous
#204189 #332089 #672089
triadic
#332089 #893320 #208933
tetradic
#332089 #892041 #768920 #208967
square
#332089 #892041 #768920 #208967
split-complementary
#332089 #896720 #418920
monochromatic
#0E0926 #211457 #332089 #452CBB #664ED6

Accessibility & contrast

On white

12.29
#332089 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332089
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332089#FFFFFF#000000##FFFFFF
##3320891.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332089;
/* rgb */ color: rgb(51, 32, 137);
/* oklch */ color: oklch(34.6% 0.163 282.0);
Tailwind
colors: {
  custom: {
    50: '#765eac',
    500: '#332089',
    950: '#000000',
  },
}
SCSS
$custom: #332089;
$custom-light: #765eac;
$custom-dark: #000000;
JSON
{
  "hex": "#332089",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 137
  },
  "hsl": {
    "h": 250.857,
    "s": 62.13,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34569,
    "c": 0.16259,
    "h": 282
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#332089
secondary
#A5B94C
accent
#E543C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #332089

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

Preview Lab → · Contrast checker → · Palette generator →

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