#3B1986#3B1986

#3B1986 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.165 H 288.5°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#3B1986
RGBrgb(59, 25, 134)
HSLhsl(259, 69%, 31%)
HSVhsv(259, 81%, 53%)
CMYKcmyk(56%, 81.3%, 0%, 47.5%)
CIE-LABlab(21.38, 42.86, -54.41)
CIE-LCHlch(21.38, 69.27, 308.23°)
OKLaboklab(34.17% 0.0524 -0.1566)
OKLCHoklch(34.17% 0.165 288.5)
XYZxyz(6.4531, 3.3460, 22.8554)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1986 #648619
analogous
#192D86 #3B1986 #711986
triadic
#3B1986 #863B19 #19863B
tetradic
#3B1986 #86192D #648619 #198671
square
#3B1986 #86192D #648619 #198671
split-complementary
#3B1986 #867119 #2D8619
monochromatic
#0E061F #240F52 #3B1986 #5223BA #6F3EDB

Accessibility & contrast

On white

12.58
#3B1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3B1986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1986
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1986#FFFFFF#000000##FFFFFF
##3B19861.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b1986;
/* rgb */ color: rgb(59, 25, 134);
/* oklch */ color: oklch(34.2% 0.165 288.5);
Tailwind
colors: {
  custom: {
    50: '#7a5baa',
    500: '#3b1986',
    950: '#000000',
  },
}
SCSS
$custom: #3b1986;
$custom-light: #7a5baa;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1986",
  "rgb": {
    "r": 59,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 258.716,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34171,
    "c": 0.16508,
    "h": 288.5
  },
  "luminance": 0.03346
}

Semantic roles & 50–950 ramp

primary
#3B1986
secondary
#94BA41
accent
#EB3CB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1986

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

Preview Lab → · Contrast checker → · Palette generator →

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