#332172#332172

#332172 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.132 H 286.8°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#332172
RGBrgb(51, 33, 114)
HSLhsl(253, 55%, 29%)
HSVhsv(253, 71%, 45%)
CMYKcmyk(55.3%, 71.1%, 0%, 55.3%)
CIE-LABlab(20.07, 31.20, -43.87)
CIE-LCHlch(20.07, 53.83, 305.42°)
OKLaboklab(32.44% 0.038 -0.126)
OKLCHoklch(32.44% 0.132 286.8)
XYZxyz(4.9455, 3.0062, 16.2360)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332172 #607221
analogous
#213872 #332172 #5C2172
triadic
#332172 #723321 #217233
tetradic
#332172 #722138 #607221 #21725C
square
#332172 #722138 #607221 #21725C
split-complementary
#332172 #725C21 #387221
monochromatic
#0B0718 #1E1343 #332172 #482FA1 #6244C9

Accessibility & contrast

On white

13.12
#332172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#332172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332172
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332172#FFFFFF#000000##FFFFFF
##3321721.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#1A3646
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #332172;
/* rgb */ color: rgb(51, 33, 114);
/* oklch */ color: oklch(32.4% 0.132 286.8);
Tailwind
colors: {
  custom: {
    50: '#725e9b',
    500: '#332172',
    950: '#000000',
  },
}
SCSS
$custom: #332172;
$custom-light: #725e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#332172",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 253.333,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32443,
    "c": 0.13161,
    "h": 286.8
  },
  "luminance": 0.03006
}

Semantic roles & 50–950 ramp

primary
#332172
secondary
#91A549
accent
#DE49BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #332172

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

Preview Lab → · Contrast checker → · Palette generator →

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