#332282#332282

#332282 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.151 H 283.0°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#332282
RGBrgb(51, 34, 130)
HSLhsl(251, 59%, 32%)
HSVhsv(251, 74%, 51%)
CMYKcmyk(60.8%, 73.8%, 0%, 49%)
CIE-LABlab(21.80, 35.79, -51.24)
CIE-LCHlch(21.80, 62.50, 304.93°)
OKLaboklab(34.14% 0.034 -0.1476)
OKLCHoklch(34.14% 0.151 283)
XYZxyz(5.9653, 3.4592, 21.4681)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332282 #718222
analogous
#224182 #332282 #632282
triadic
#332282 #823322 #228233
tetradic
#332282 #822241 #718222 #228263
square
#332282 #822241 #718222 #228263
split-complementary
#332282 #826322 #418222
monochromatic
#0D0921 #201551 #332282 #462FB3 #654ED1

Accessibility & contrast

On white

12.41
#332282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#332282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332282
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332282#FFFFFF#000000##FFFFFF
##3322821.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#013C4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #332282;
/* rgb */ color: rgb(51, 34, 130);
/* oklch */ color: oklch(34.1% 0.151 283.0);
Tailwind
colors: {
  custom: {
    50: '#755fa7',
    500: '#332282',
    950: '#000000',
  },
}
SCSS
$custom: #332282;
$custom-light: #755fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#332282",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 250.625,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34143,
    "c": 0.15147,
    "h": 283
  },
  "luminance": 0.0346
}

Semantic roles & 50–950 ramp

primary
#332282
secondary
#A2B44C
accent
#E246C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332282

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

Preview Lab → · Contrast checker → · Palette generator →

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