#332181#332181

#332181 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.151 H 283.4°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#332181
RGBrgb(51, 33, 129)
HSLhsl(251, 59%, 32%)
HSVhsv(251, 74%, 51%)
CMYKcmyk(60.5%, 74.4%, 0%, 49.4%)
CIE-LABlab(21.49, 36.04, -51.11)
CIE-LCHlch(21.49, 62.54, 305.19°)
OKLaboklab(33.9% 0.035 -0.1472)
OKLCHoklch(33.9% 0.151 283.4)
XYZxyz(5.8703, 3.3761, 21.1069)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332181 #6F8121
analogous
#213F81 #332181 #632181
triadic
#332181 #813321 #218133
tetradic
#332181 #81213F #6F8121 #218163
square
#332181 #81213F #6F8121 #218163
split-complementary
#332181 #816321 #3F8121
monochromatic
#0C0820 #201550 #332181 #462DB2 #644BD1

Accessibility & contrast

On white

12.54
#332181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#332181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332181
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332181#FFFFFF#000000##FFFFFF
##3321811.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#043B4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #332181;
/* rgb */ color: rgb(51, 33, 129);
/* oklch */ color: oklch(33.9% 0.151 283.4);
Tailwind
colors: {
  custom: {
    50: '#755ea7',
    500: '#332181',
    950: '#000000',
  },
}
SCSS
$custom: #332181;
$custom-light: #755ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#332181",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 251.25,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33896,
    "c": 0.15134,
    "h": 283.4
  },
  "luminance": 0.03376
}

Semantic roles & 50–950 ramp

primary
#332181
secondary
#A0B44A
accent
#E245C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #332181

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

Preview Lab → · Contrast checker → · Palette generator →

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