#332382#332382

#332382 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.150 H 282.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#332382
RGBrgb(51, 35, 130)
HSLhsl(250, 58%, 32%)
HSVhsv(250, 73%, 51%)
CMYKcmyk(60.8%, 73.1%, 0%, 49%)
CIE-LABlab(22.01, 35.20, -50.90)
CIE-LCHlch(22.01, 61.88, 304.67°)
OKLaboklab(34.29% 0.0332 -0.1466)
OKLCHoklch(34.29% 0.15 282.7)
XYZxyz(5.9943, 3.5172, 21.4778)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332382 #728223
analogous
#234382 #332382 #622382
triadic
#332382 #823323 #238233
tetradic
#332382 #822343 #728223 #238262
square
#332382 #822343 #728223 #238262
split-complementary
#332382 #826223 #438223
monochromatic
#0D0922 #201652 #332382 #4630B2 #6550D0

Accessibility & contrast

On white

12.33
#332382 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#332382 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332382
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332382#FFFFFF#000000##FFFFFF
##3323821.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#013D50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #332382;
/* rgb */ color: rgb(51, 35, 130);
/* oklch */ color: oklch(34.3% 0.150 282.7);
Tailwind
colors: {
  custom: {
    50: '#7560a7',
    500: '#332382',
    950: '#000000',
  },
}
SCSS
$custom: #332382;
$custom-light: #7560a7;
$custom-dark: #000000;
JSON
{
  "hex": "#332382",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 130
  },
  "hsl": {
    "h": 250.105,
    "s": 57.576,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34292,
    "c": 0.15031,
    "h": 282.7
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#332382
secondary
#A2B34D
accent
#E147C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332382

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

Preview Lab → · Contrast checker → · Palette generator →

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