#332473#332473

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

Color values

HEX#332473
RGBrgb(51, 36, 115)
HSLhsl(251, 52%, 30%)
HSVhsv(251, 69%, 45%)
CMYKcmyk(55.7%, 68.7%, 0%, 54.9%)
CIE-LABlab(20.84, 29.67, -43.25)
CIE-LCHlch(20.84, 52.45, 304.45°)
OKLaboklab(33.03% 0.0348 -0.1242)
OKLCHoklch(33.03% 0.129 285.6)
XYZxyz(5.0897, 3.2031, 16.5664)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332473 #647324
analogous
#243D73 #332473 #5A2473
triadic
#332473 #733324 #247333
tetradic
#332473 #73243D #647324 #24735A
square
#332473 #73243D #647324 #24735A
split-complementary
#332473 #735A24 #3D7324
monochromatic
#0A0717 #1E1544 #332473 #4833A2 #624BC7

Accessibility & contrast

On white

12.80
#332473 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#332473 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332473
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332473#FFFFFF#000000##FFFFFF
##3324731.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003475
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#193848
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #332473;
/* rgb */ color: rgb(51, 36, 115);
/* oklch */ color: oklch(33.0% 0.129 285.6);
Tailwind
colors: {
  custom: {
    50: '#72609c',
    500: '#332473',
    950: '#000000',
  },
}
SCSS
$custom: #332473;
$custom-light: #72609c;
$custom-dark: #000000;
JSON
{
  "hex": "#332473",
  "rgb": {
    "r": 51,
    "g": 36,
    "b": 115
  },
  "hsl": {
    "h": 251.392,
    "s": 52.318,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33027,
    "c": 0.12898,
    "h": 285.6
  },
  "luminance": 0.03203
}

Semantic roles & 50–950 ramp

primary
#332473
secondary
#95A64D
accent
#DC4CC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #332473

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

Preview Lab → · Contrast checker → · Palette generator →

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