#3B1785#3B1785

#3B1785 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.166 H 289.0°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#3B1785
RGBrgb(59, 23, 133)
HSLhsl(260, 71%, 31%)
HSVhsv(260, 83%, 52%)
CMYKcmyk(55.6%, 82.7%, 0%, 47.8%)
CIE-LABlab(20.96, 43.48, -54.47)
CIE-LCHlch(20.96, 69.69, 308.60°)
OKLaboklab(33.85% 0.0541 -0.1567)
OKLCHoklch(33.85% 0.166 289)
XYZxyz(6.3424, 3.2357, 22.4761)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1785 #618517
analogous
#172A85 #3B1785 #721785
triadic
#3B1785 #853B17 #17853B
tetradic
#3B1785 #85172A #618517 #178572
square
#3B1785 #85172A #618517 #178572
split-complementary
#3B1785 #857217 #2A8517
monochromatic
#0D051D #240E51 #3B1785 #5220B9 #6F3ADD

Accessibility & contrast

On white

12.75
#3B1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3B1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1785
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1785#FFFFFF#000000##FFFFFF
##3B17851.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#1D384F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3b1785;
/* rgb */ color: rgb(59, 23, 133);
/* oklch */ color: oklch(33.9% 0.166 289.0);
Tailwind
colors: {
  custom: {
    50: '#7a5aaa',
    500: '#3b1785',
    950: '#000000',
  },
}
SCSS
$custom: #3b1785;
$custom-light: #7a5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1785",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 259.636,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33852,
    "c": 0.16577,
    "h": 289
  },
  "luminance": 0.03236
}

Semantic roles & 50–950 ramp

primary
#3B1785
secondary
#91B93F
accent
#ED3BB3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1785

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

Preview Lab → · Contrast checker → · Palette generator →

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