#332187#332187

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

Color values

HEX#332187
RGBrgb(51, 33, 135)
HSLhsl(251, 61%, 33%)
HSVhsv(251, 76%, 53%)
CMYKcmyk(62.2%, 75.6%, 0%, 47.1%)
CIE-LABlab(22.09, 37.97, -53.90)
CIE-LCHlch(22.09, 65.93, 305.16°)
OKLaboklab(34.5% 0.0336 -0.1554)
OKLCHoklch(34.5% 0.159 282.2)
XYZxyz(6.2809, 3.5404, 23.2694)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332187 #758721
analogous
#214287 #332187 #662187
triadic
#332187 #873321 #218733
tetradic
#332187 #872142 #758721 #218766
square
#332187 #872142 #758721 #218766
split-complementary
#332187 #876621 #428721
monochromatic
#0E0925 #201556 #332187 #462DB8 #664FD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##332187#FFFFFF#000000##FFFFFF
##3321871.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)
#00388A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #332187;
/* rgb */ color: rgb(51, 33, 135);
/* oklch */ color: oklch(34.5% 0.159 282.2);
Tailwind
colors: {
  custom: {
    50: '#765fab',
    500: '#332187',
    950: '#000000',
  },
}
SCSS
$custom: #332187;
$custom-light: #765fab;
$custom-dark: #000000;
JSON
{
  "hex": "#332187",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 250.588,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34502,
    "c": 0.159,
    "h": 282.2
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#332187
secondary
#A4B74D
accent
#E444C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #332187

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

Preview Lab → · Contrast checker → · Palette generator →

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