#332073#332073

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

Color values

HEX#332073
RGBrgb(51, 32, 115)
HSLhsl(254, 56%, 29%)
HSVhsv(254, 72%, 45%)
CMYKcmyk(55.7%, 72.2%, 0%, 54.9%)
CIE-LABlab(19.94, 32.12, -44.72)
CIE-LCHlch(19.94, 55.06, 305.69°)
OKLaboklab(32.38% 0.0388 -0.1285)
OKLCHoklch(32.38% 0.134 286.8)
XYZxyz(4.9753, 2.9744, 16.5283)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332073 #607320
analogous
#203773 #332073 #5D2073
triadic
#332073 #733320 #207333
tetradic
#332073 #732037 #607320 #20735D
square
#332073 #732037 #607320 #20735D
split-complementary
#332073 #735D20 #377320
monochromatic
#0B0718 #1E1343 #332073 #482DA3 #6243CB

Accessibility & contrast

On white

13.17
#332073 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332073
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332073#FFFFFF#000000##FFFFFF
##3320731.0013.171.6013.17
#FFFFFF13.171.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#002E71
Tritanopia (blue-blind)
#193547
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #332073;
/* rgb */ color: rgb(51, 32, 115);
/* oklch */ color: oklch(32.4% 0.134 286.8);
Tailwind
colors: {
  custom: {
    50: '#725d9c',
    500: '#332073',
    950: '#000000',
  },
}
SCSS
$custom: #332073;
$custom-light: #725d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#332073",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 115
  },
  "hsl": {
    "h": 253.735,
    "s": 56.463,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3238,
    "c": 0.13424,
    "h": 286.8
  },
  "luminance": 0.02975
}

Semantic roles & 50–950 ramp

primary
#332073
secondary
#91A748
accent
#E048BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #332073

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

Preview Lab → · Contrast checker → · Palette generator →

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