#332374#332374

#332374 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.0% C 0.132 H 285.7°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#332374
RGBrgb(51, 35, 116)
HSLhsl(252, 54%, 30%)
HSVhsv(252, 70%, 45%)
CMYKcmyk(56%, 69.8%, 0%, 54.5%)
CIE-LABlab(20.70, 30.62, -44.13)
CIE-LCHlch(20.70, 53.71, 304.76°)
OKLaboklab(32.95% 0.0357 -0.1268)
OKLCHoklch(32.95% 0.132 285.7)
XYZxyz(5.1177, 3.1665, 16.8611)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332374 #647423
analogous
#233C74 #332374 #5C2374
triadic
#332374 #743323 #237433
tetradic
#332374 #74233C #647423 #23745C
square
#332374 #74233C #647423 #23745C
split-complementary
#332374 #745C23 #3C7423
monochromatic
#0A0718 #1E1545 #332374 #4831A3 #6249C8

Accessibility & contrast

On white

12.86
#332374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#332374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332374
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332374#FFFFFF#000000##FFFFFF
##3323741.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#183748
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #332374;
/* rgb */ color: rgb(51, 35, 116);
/* oklch */ color: oklch(33.0% 0.132 285.7);
Tailwind
colors: {
  custom: {
    50: '#725f9d',
    500: '#332374',
    950: '#000000',
  },
}
SCSS
$custom: #332374;
$custom-light: #725f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#332374",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 116
  },
  "hsl": {
    "h": 251.852,
    "s": 53.642,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32953,
    "c": 0.13168,
    "h": 285.7
  },
  "luminance": 0.03167
}

Semantic roles & 50–950 ramp

primary
#332374
secondary
#95A74C
accent
#DD4BC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #332374

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

Preview Lab → · Contrast checker → · Palette generator →

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