#332373#332373

#332373 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.130 H 285.9°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#332373
RGBrgb(51, 35, 115)
HSLhsl(252, 53%, 29%)
HSVhsv(252, 70%, 45%)
CMYKcmyk(55.7%, 69.6%, 0%, 54.9%)
CIE-LABlab(20.61, 30.29, -43.63)
CIE-LCHlch(20.61, 53.12, 304.77°)
OKLaboklab(32.86% 0.0358 -0.1253)
OKLCHoklch(32.86% 0.13 285.9)
XYZxyz(5.0599, 3.1434, 16.5565)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332373 #637323
analogous
#233B73 #332373 #5B2373
triadic
#332373 #733323 #237333
tetradic
#332373 #73233B #637323 #23735B
square
#332373 #73233B #637323 #23735B
split-complementary
#332373 #735B23 #3B7323
monochromatic
#0A0717 #1E1544 #332373 #4831A2 #6249C8

Accessibility & contrast

On white

12.89
#332373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332373
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332373#FFFFFF#000000##FFFFFF
##3323731.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003475
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#193747
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #332373;
/* rgb */ color: rgb(51, 35, 115);
/* oklch */ color: oklch(32.9% 0.130 285.9);
Tailwind
colors: {
  custom: {
    50: '#725f9c',
    500: '#332373',
    950: '#000000',
  },
}
SCSS
$custom: #332373;
$custom-light: #725f9c;
$custom-dark: #000000;
JSON
{
  "hex": "#332373",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 115
  },
  "hsl": {
    "h": 252,
    "s": 53.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3286,
    "c": 0.13031,
    "h": 285.9
  },
  "luminance": 0.03144
}

Semantic roles & 50–950 ramp

primary
#332373
secondary
#94A64C
accent
#DD4BC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #332373

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

Preview Lab → · Contrast checker → · Palette generator →

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