#3B1784#3B1784

#3B1784 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.165 H 289.3°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#3B1784
RGBrgb(59, 23, 132)
HSLhsl(260, 70%, 30%)
HSVhsv(260, 83%, 52%)
CMYKcmyk(55.3%, 82.6%, 0%, 48.2%)
CIE-LABlab(20.86, 43.19, -54.01)
CIE-LCHlch(20.86, 69.16, 308.65°)
OKLaboklab(33.75% 0.0544 -0.1554)
OKLCHoklch(33.75% 0.165 289.3)
XYZxyz(6.2737, 3.2082, 22.1140)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1784 #608417
analogous
#172984 #3B1784 #721784
triadic
#3B1784 #843B17 #17843B
tetradic
#3B1784 #841729 #608417 #178472
square
#3B1784 #841729 #608417 #178472
split-complementary
#3B1784 #847217 #298417
monochromatic
#0C051C #240E50 #3B1784 #5220B8 #6F39DC

Accessibility & contrast

On white

12.79
#3B1784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3B1784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1784
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1784#FFFFFF#000000##FFFFFF
##3B17841.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#1E374E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3b1784;
/* rgb */ color: rgb(59, 23, 132);
/* oklch */ color: oklch(33.7% 0.165 289.3);
Tailwind
colors: {
  custom: {
    50: '#7a5aa9',
    500: '#3b1784',
    950: '#000000',
  },
}
SCSS
$custom: #3b1784;
$custom-light: #7a5aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1784",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 259.817,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33748,
    "c": 0.16462,
    "h": 289.3
  },
  "luminance": 0.03209
}

Semantic roles & 50–950 ramp

primary
#3B1784
secondary
#90B83F
accent
#ED3BB2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1784

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

Preview Lab → · Contrast checker → · Palette generator →

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