#3B2182#3B2182

#3B2182 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.152 H 288.1°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#3B2182
RGBrgb(59, 33, 130)
HSLhsl(256, 60%, 32%)
HSVhsv(256, 75%, 51%)
CMYKcmyk(54.6%, 74.6%, 0%, 49%)
CIE-LABlab(22.40, 37.62, -50.21)
CIE-LCHlch(22.40, 62.74, 306.84°)
OKLaboklab(34.77% 0.0471 -0.1443)
OKLCHoklch(34.77% 0.152 288.1)
XYZxyz(6.3756, 3.6289, 21.4793)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B2182 #688221
analogous
#213882 #3B2182 #6B2182
triadic
#3B2182 #823B21 #21823B
tetradic
#3B2182 #822138 #688221 #21826B
square
#3B2182 #822138 #688221 #21826B
split-complementary
#3B2182 #826B21 #388221
monochromatic
#0F0820 #251551 #3B2182 #512DB3 #704CD2

Accessibility & contrast

On white

12.17
#3B2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3B2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B2182
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B2182#FFFFFF#000000##FFFFFF
##3B21821.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#1F3B4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3b2182;
/* rgb */ color: rgb(59, 33, 130);
/* oklch */ color: oklch(34.8% 0.152 288.1);
Tailwind
colors: {
  custom: {
    50: '#795fa7',
    500: '#3b2182',
    950: '#000000',
  },
}
SCSS
$custom: #3b2182;
$custom-light: #795fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#3b2182",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 256.082,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3477,
    "c": 0.15181,
    "h": 288.1
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#3B2182
secondary
#98B44A
accent
#E345B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3B2182

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

Preview Lab → · Contrast checker → · Palette generator →

#3B2182 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva