#332174#332174

#332174 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.6% C 0.134 H 286.3°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#332174
RGBrgb(51, 33, 116)
HSLhsl(253, 56%, 29%)
HSVhsv(253, 72%, 45%)
CMYKcmyk(56%, 71.6%, 0%, 54.5%)
CIE-LABlab(20.25, 31.84, -44.86)
CIE-LCHlch(20.25, 55.01, 305.37°)
OKLaboklab(32.63% 0.0377 -0.1289)
OKLCHoklch(32.63% 0.134 286.3)
XYZxyz(5.0605, 3.0522, 16.8421)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332174 #627421
analogous
#213974 #332174 #5D2174
triadic
#332174 #743321 #217433
tetradic
#332174 #742139 #627421 #21745D
square
#332174 #742139 #627421 #21745D
split-complementary
#332174 #745D21 #397421
monochromatic
#0A0718 #1E1344 #332174 #482FA4 #6245CA

Accessibility & contrast

On white

13.04
#332174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332174
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332174#FFFFFF#000000##FFFFFF
##3321741.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#183647
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #332174;
/* rgb */ color: rgb(51, 33, 116);
/* oklch */ color: oklch(32.6% 0.134 286.3);
Tailwind
colors: {
  custom: {
    50: '#725e9d',
    500: '#332174',
    950: '#000000',
  },
}
SCSS
$custom: #332174;
$custom-light: #725e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#332174",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 253.012,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32632,
    "c": 0.13429,
    "h": 286.3
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#332174
secondary
#93A749
accent
#DF49BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #332174

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

Preview Lab → · Contrast checker → · Palette generator →

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