#332185#332185

#332185 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.156 H 282.6°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#332185
RGBrgb(51, 33, 133)
HSLhsl(251, 60%, 33%)
HSVhsv(251, 75%, 52%)
CMYKcmyk(61.7%, 75.2%, 0%, 47.8%)
CIE-LABlab(21.89, 37.32, -52.98)
CIE-LCHlch(21.89, 64.81, 305.17°)
OKLaboklab(34.3% 0.0341 -0.1527)
OKLCHoklch(34.3% 0.156 282.6)
XYZxyz(6.1414, 3.4846, 22.5347)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332185 #738521
analogous
#214185 #332185 #652185
triadic
#332185 #853321 #218533
tetradic
#332185 #852141 #738521 #218565
square
#332185 #852141 #738521 #218565
split-complementary
#332185 #856521 #418521
monochromatic
#0D0923 #201554 #332185 #462DB6 #654DD3

Accessibility & contrast

On white

12.37
#332185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332185
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332185#FFFFFF#000000##FFFFFF
##3321851.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #332185;
/* rgb */ color: rgb(51, 33, 133);
/* oklch */ color: oklch(34.3% 0.156 282.6);
Tailwind
colors: {
  custom: {
    50: '#755ea9',
    500: '#332185',
    950: '#000000',
  },
}
SCSS
$custom: #332185;
$custom-light: #755ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#332185",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 250.8,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34298,
    "c": 0.15645,
    "h": 282.6
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#332185
secondary
#A3B64C
accent
#E344C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #332185

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

Preview Lab → · Contrast checker → · Palette generator →

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