#332186#332186

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

Color values

HEX#332186
RGBrgb(51, 33, 134)
HSLhsl(251, 60%, 33%)
HSVhsv(251, 75%, 53%)
CMYKcmyk(61.9%, 75.4%, 0%, 47.5%)
CIE-LABlab(21.99, 37.65, -53.44)
CIE-LCHlch(21.99, 65.37, 305.16°)
OKLaboklab(34.4% 0.0339 -0.154)
OKLCHoklch(34.4% 0.158 282.4)
XYZxyz(6.2108, 3.5123, 22.9003)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332186 #748621
analogous
#214186 #332186 #652186
triadic
#332186 #863321 #218633
tetradic
#332186 #862141 #748621 #218665
square
#332186 #862141 #748621 #218665
split-complementary
#332186 #866521 #418621
monochromatic
#0E0924 #201555 #332186 #462DB7 #664ED3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##332186#FFFFFF#000000##FFFFFF
##3321861.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)
#003889
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #332186;
/* rgb */ color: rgb(51, 33, 134);
/* oklch */ color: oklch(34.4% 0.158 282.4);
Tailwind
colors: {
  custom: {
    50: '#765eaa',
    500: '#332186',
    950: '#000000',
  },
}
SCSS
$custom: #332186;
$custom-light: #765eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#332186",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 250.693,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.344,
    "c": 0.15773,
    "h": 282.4
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

primary
#332186
secondary
#A4B74C
accent
#E444C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #332186

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

Preview Lab → · Contrast checker → · Palette generator →

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