#332371#332371

#332371 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.7% C 0.128 H 286.4°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#332371
RGBrgb(51, 35, 113)
HSLhsl(252, 53%, 29%)
HSVhsv(252, 69%, 44%)
CMYKcmyk(54.9%, 69%, 0%, 55.7%)
CIE-LABlab(20.43, 29.64, -42.63)
CIE-LCHlch(20.43, 51.92, 304.81°)
OKLaboklab(32.68% 0.0361 -0.1224)
OKLCHoklch(32.68% 0.128 286.4)
XYZxyz(4.9460, 3.0979, 15.9569)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332371 #617123
analogous
#233A71 #332371 #5A2371
triadic
#332371 #713323 #237133
tetradic
#332371 #71233A #617123 #23715A
square
#332371 #71233A #617123 #23715A
split-complementary
#332371 #715A23 #3A7123
monochromatic
#0B0717 #1E1542 #332371 #4831A0 #6248C6

Accessibility & contrast

On white

12.97
#332371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#332371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332371
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332371#FFFFFF#000000##FFFFFF
##3323711.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#1B3646
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #332371;
/* rgb */ color: rgb(51, 35, 113);
/* oklch */ color: oklch(32.7% 0.128 286.4);
Tailwind
colors: {
  custom: {
    50: '#715f9a',
    500: '#332371',
    950: '#000000',
  },
}
SCSS
$custom: #332371;
$custom-light: #715f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#332371",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 252.308,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32677,
    "c": 0.12758,
    "h": 286.4
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#332371
secondary
#92A44C
accent
#DC4CBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #332371

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

Preview Lab → · Contrast checker → · Palette generator →

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