#332288#332288

#332288 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.159 H 281.8°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#332288
RGBrgb(51, 34, 136)
HSLhsl(250, 60%, 33%)
HSVhsv(250, 75%, 53%)
CMYKcmyk(62.5%, 75%, 0%, 46.7%)
CIE-LABlab(22.39, 37.72, -54.03)
CIE-LCHlch(22.39, 65.90, 304.92°)
OKLaboklab(34.74% 0.0326 -0.1558)
OKLCHoklch(34.74% 0.159 281.8)
XYZxyz(6.3798, 3.6250, 23.6513)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332288 #778822
analogous
#224488 #332288 #662288
triadic
#332288 #883322 #228833
tetradic
#332288 #882244 #778822 #228866
square
#332288 #882244 #778822 #228866
split-complementary
#332288 #886622 #448822
monochromatic
#0E0A26 #211657 #332288 #452EB9 #6751D3

Accessibility & contrast

On white

12.17
#332288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#332288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332288
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332288#FFFFFF#000000##FFFFFF
##3322881.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #332288;
/* rgb */ color: rgb(51, 34, 136);
/* oklch */ color: oklch(34.7% 0.159 281.8);
Tailwind
colors: {
  custom: {
    50: '#765fac',
    500: '#332288',
    950: '#000000',
  },
}
SCSS
$custom: #332288;
$custom-light: #765fac;
$custom-dark: #000000;
JSON
{
  "hex": "#332288",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 250,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34745,
    "c": 0.15917,
    "h": 281.8
  },
  "luminance": 0.03625
}

Semantic roles & 50–950 ramp

primary
#332288
secondary
#A6B74F
accent
#E345C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332288

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

Preview Lab → · Contrast checker → · Palette generator →

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