#332183#332183

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

Color values

HEX#332183
RGBrgb(51, 33, 131)
HSLhsl(251, 60%, 32%)
HSVhsv(251, 75%, 51%)
CMYKcmyk(61.1%, 74.8%, 0%, 48.6%)
CIE-LABlab(21.69, 36.68, -52.05)
CIE-LCHlch(21.69, 63.68, 305.18°)
OKLaboklab(34.1% 0.0346 -0.15)
OKLCHoklch(34.1% 0.154 283)
XYZxyz(6.0046, 3.4298, 21.8139)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332183 #718321
analogous
#214083 #332183 #642183
triadic
#332183 #833321 #218333
tetradic
#332183 #832140 #718321 #218364
square
#332183 #832140 #718321 #218364
split-complementary
#332183 #836421 #408321
monochromatic
#0D0821 #201552 #332183 #462DB4 #654CD2

Accessibility & contrast

On white

12.46
#332183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332183
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332183#FFFFFF#000000##FFFFFF
##3321831.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332183;
/* rgb */ color: rgb(51, 33, 131);
/* oklch */ color: oklch(34.1% 0.154 283.0);
Tailwind
colors: {
  custom: {
    50: '#755ea8',
    500: '#332183',
    950: '#000000',
  },
}
SCSS
$custom: #332183;
$custom-light: #755ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#332183",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 251.02,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34096,
    "c": 0.1539,
    "h": 283
  },
  "luminance": 0.0343
}

Semantic roles & 50–950 ramp

primary
#332183
secondary
#A2B54B
accent
#E345C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #332183

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

Preview Lab → · Contrast checker → · Palette generator →

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