#332287#332287

#332287 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.158 H 282.0°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#332287
RGBrgb(51, 34, 135)
HSLhsl(250, 60%, 33%)
HSVhsv(250, 75%, 53%)
CMYKcmyk(62.2%, 74.8%, 0%, 47.1%)
CIE-LABlab(22.29, 37.40, -53.57)
CIE-LCHlch(22.29, 65.34, 304.92°)
OKLaboklab(34.64% 0.0329 -0.1544)
OKLCHoklch(34.64% 0.158 282)
XYZxyz(6.3091, 3.5967, 23.2787)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332287 #768722
analogous
#224387 #332287 #652287
triadic
#332287 #873322 #228733
tetradic
#332287 #872243 #768722 #228765
square
#332287 #872243 #768722 #228765
split-complementary
#332287 #876522 #438722
monochromatic
#0E0925 #211656 #332287 #452EB8 #6650D3

Accessibility & contrast

On white

12.21
#332287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#332287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332287
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332287#FFFFFF#000000##FFFFFF
##3322871.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #332287;
/* rgb */ color: rgb(51, 34, 135);
/* oklch */ color: oklch(34.6% 0.158 282.0);
Tailwind
colors: {
  custom: {
    50: '#765fab',
    500: '#332287',
    950: '#000000',
  },
}
SCSS
$custom: #332287;
$custom-light: #765fab;
$custom-dark: #000000;
JSON
{
  "hex": "#332287",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 250.099,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34644,
    "c": 0.1579,
    "h": 282
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#332287
secondary
#A5B74E
accent
#E345C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332287

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

Preview Lab → · Contrast checker → · Palette generator →

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