#332173#332173

#332173 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.133 H 286.5°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#332173
RGBrgb(51, 33, 115)
HSLhsl(253, 55%, 29%)
HSVhsv(253, 71%, 45%)
CMYKcmyk(55.7%, 71.3%, 0%, 54.9%)
CIE-LABlab(20.16, 31.52, -44.36)
CIE-LCHlch(20.16, 54.42, 305.39°)
OKLaboklab(32.54% 0.0378 -0.1274)
OKLCHoklch(32.54% 0.133 286.5)
XYZxyz(5.0027, 3.0291, 16.5374)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332173 #617321
analogous
#213873 #332173 #5C2173
triadic
#332173 #733321 #217333
tetradic
#332173 #732138 #617321 #21735C
square
#332173 #732138 #617321 #21735C
split-complementary
#332173 #735C21 #387321
monochromatic
#0B0718 #1E1343 #332173 #482FA3 #6245CA

Accessibility & contrast

On white

13.08
#332173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#332173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332173
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332173#FFFFFF#000000##FFFFFF
##3321731.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#002E71
Tritanopia (blue-blind)
#193647
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #332173;
/* rgb */ color: rgb(51, 33, 115);
/* oklch */ color: oklch(32.5% 0.133 286.5);
Tailwind
colors: {
  custom: {
    50: '#725e9c',
    500: '#332173',
    950: '#000000',
  },
}
SCSS
$custom: #332173;
$custom-light: #725e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#332173",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 253.171,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32537,
    "c": 0.13295,
    "h": 286.5
  },
  "luminance": 0.03029
}

Semantic roles & 50–950 ramp

primary
#332173
secondary
#92A649
accent
#DF49BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #332173

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

Preview Lab → · Contrast checker → · Palette generator →

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