#332189#332189

#332189 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.162 H 281.8°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#332189
RGBrgb(51, 33, 137)
HSLhsl(250, 61%, 33%)
HSVhsv(250, 76%, 54%)
CMYKcmyk(62.8%, 75.9%, 0%, 46.3%)
CIE-LABlab(22.29, 38.61, -54.82)
CIE-LCHlch(22.29, 67.05, 305.15°)
OKLaboklab(34.71% 0.0332 -0.1581)
OKLCHoklch(34.71% 0.162 281.8)
XYZxyz(6.4230, 3.5972, 24.0179)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332189 #778921
analogous
#214389 #332189 #672189
triadic
#332189 #893321 #218933
tetradic
#332189 #892143 #778921 #218967
square
#332189 #892143 #778921 #218967
split-complementary
#332189 #896721 #438921
monochromatic
#0E0926 #211558 #332189 #452DBA #6750D5

Accessibility & contrast

On white

12.21
#332189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#332189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332189
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332189#FFFFFF#000000##FFFFFF
##3321891.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332189;
/* rgb */ color: rgb(51, 33, 137);
/* oklch */ color: oklch(34.7% 0.162 281.8);
Tailwind
colors: {
  custom: {
    50: '#765fac',
    500: '#332189',
    950: '#000000',
  },
}
SCSS
$custom: #332189;
$custom-light: #765fac;
$custom-dark: #000000;
JSON
{
  "hex": "#332189",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 250.385,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34706,
    "c": 0.16152,
    "h": 281.8
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#332189
secondary
#A6B84E
accent
#E444C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #332189

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

Preview Lab → · Contrast checker → · Palette generator →

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