#3B2186#3B2186

#3B2186 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.157 H 287.1°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#3B2186
RGBrgb(59, 33, 134)
HSLhsl(255, 60%, 33%)
HSVhsv(255, 75%, 53%)
CMYKcmyk(56%, 75.4%, 0%, 47.5%)
CIE-LABlab(22.79, 38.84, -52.10)
CIE-LCHlch(22.79, 64.98, 306.70°)
OKLaboklab(35.16% 0.0461 -0.1499)
OKLCHoklch(35.16% 0.157 287.1)
XYZxyz(6.6493, 3.7384, 22.9208)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B2186 #6C8621
analogous
#213986 #3B2186 #6E2186
triadic
#3B2186 #863B21 #21863B
tetradic
#3B2186 #862139 #6C8621 #21866E
square
#3B2186 #862139 #6C8621 #21866E
split-complementary
#3B2186 #866E21 #398621
monochromatic
#100924 #251555 #3B2186 #512DB7 #704ED3

Accessibility & contrast

On white

12.02
#3B2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3B2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B2186
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B2186#FFFFFF#000000##FFFFFF
##3B21861.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003484
Tritanopia (blue-blind)
#1B3C51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3b2186;
/* rgb */ color: rgb(59, 33, 134);
/* oklch */ color: oklch(35.2% 0.157 287.1);
Tailwind
colors: {
  custom: {
    50: '#7a5faa',
    500: '#3b2186',
    950: '#000000',
  },
}
SCSS
$custom: #3b2186;
$custom-light: #7a5faa;
$custom-dark: #000000;
JSON
{
  "hex": "#3b2186",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 255.446,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35158,
    "c": 0.1568,
    "h": 287.1
  },
  "luminance": 0.03739
}

Semantic roles & 50–950 ramp

primary
#3B2186
secondary
#9BB74C
accent
#E444BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3B2186

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

Preview Lab → · Contrast checker → · Palette generator →

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