#332083#332083

#332083 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.155 H 283.2°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#332083
RGBrgb(51, 32, 131)
HSLhsl(252, 61%, 32%)
HSVhsv(252, 76%, 51%)
CMYKcmyk(61.1%, 75.6%, 0%, 48.6%)
CIE-LABlab(21.49, 37.25, -52.38)
CIE-LCHlch(21.49, 64.27, 305.42°)
OKLaboklab(33.95% 0.0354 -0.1509)
OKLCHoklch(33.95% 0.155 283.2)
XYZxyz(5.9772, 3.3751, 21.8048)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332083 #708320
analogous
#203F83 #332083 #652083
triadic
#332083 #833320 #208333
tetradic
#332083 #83203F #708320 #208365
square
#332083 #83203F #708320 #208365
split-complementary
#332083 #836520 #3F8320
monochromatic
#0D0821 #201452 #332083 #462CB4 #654AD3

Accessibility & contrast

On white

12.54
#332083 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#332083 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332083
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332083#FFFFFF#000000##FFFFFF
##3320831.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #332083;
/* rgb */ color: rgb(51, 32, 131);
/* oklch */ color: oklch(34.0% 0.155 283.2);
Tailwind
colors: {
  custom: {
    50: '#755ea8',
    500: '#332083',
    950: '#000000',
  },
}
SCSS
$custom: #332083;
$custom-light: #755ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#332083",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 131
  },
  "hsl": {
    "h": 251.515,
    "s": 60.736,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33954,
    "c": 0.15501,
    "h": 283.2
  },
  "luminance": 0.03376
}

Semantic roles & 50–950 ramp

primary
#332083
secondary
#A1B649
accent
#E444C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #332083

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

Preview Lab → · Contrast checker → · Palette generator →

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