#3B1886#3B1886

#3B1886 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.166 H 288.6°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#3B1886
RGBrgb(59, 24, 134)
HSLhsl(259, 70%, 31%)
HSVhsv(259, 82%, 53%)
CMYKcmyk(56%, 82.1%, 0%, 47.5%)
CIE-LABlab(21.22, 43.31, -54.67)
CIE-LCHlch(21.22, 69.75, 308.39°)
OKLaboklab(34.06% 0.0531 -0.1573)
OKLCHoklch(34.06% 0.166 288.6)
XYZxyz(6.4321, 3.3040, 22.8484)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1886 #638618
analogous
#182C86 #3B1886 #721886
triadic
#3B1886 #863B18 #18863B
tetradic
#3B1886 #86182C #638618 #188672
square
#3B1886 #86182C #638618 #188672
split-complementary
#3B1886 #867218 #2C8618
monochromatic
#0D051E #240F52 #3B1886 #5221BA #6F3CDC

Accessibility & contrast

On white

12.64
#3B1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3B1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1886
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1886#FFFFFF#000000##FFFFFF
##3B18861.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#1C394F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3b1886;
/* rgb */ color: rgb(59, 24, 134);
/* oklch */ color: oklch(34.1% 0.166 288.6);
Tailwind
colors: {
  custom: {
    50: '#7a5aaa',
    500: '#3b1886',
    950: '#000000',
  },
}
SCSS
$custom: #3b1886;
$custom-light: #7a5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1886",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 259.091,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34062,
    "c": 0.166,
    "h": 288.6
  },
  "luminance": 0.03304
}

Semantic roles & 50–950 ramp

primary
#3B1886
secondary
#93BA40
accent
#EC3BB4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1886

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

Preview Lab → · Contrast checker → · Palette generator →

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