#3B1884#3B1884

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

Color values

HEX#3B1884
RGBrgb(59, 24, 132)
HSLhsl(259, 69%, 31%)
HSVhsv(259, 82%, 52%)
CMYKcmyk(55.3%, 81.8%, 0%, 48.2%)
CIE-LABlab(21.01, 42.74, -53.76)
CIE-LCHlch(21.01, 68.68, 308.49°)
OKLaboklab(33.86% 0.0537 -0.1546)
OKLCHoklch(33.86% 0.164 289.2)
XYZxyz(6.2939, 3.2487, 22.1207)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1884 #618418
analogous
#182B84 #3B1884 #711884
triadic
#3B1884 #843B18 #18843B
tetradic
#3B1884 #84182B #618418 #188471
square
#3B1884 #84182B #618418 #188471
split-complementary
#3B1884 #847118 #2B8418
monochromatic
#0D051C #240F50 #3B1884 #5221B8 #6F3BDB

Accessibility & contrast

On white

12.73
#3B1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B1884
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1884#FFFFFF#000000##FFFFFF
##3B18841.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#1E384E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3b1884;
/* rgb */ color: rgb(59, 24, 132);
/* oklch */ color: oklch(33.9% 0.164 289.2);
Tailwind
colors: {
  custom: {
    50: '#7a5aa9',
    500: '#3b1884',
    950: '#000000',
  },
}
SCSS
$custom: #3b1884;
$custom-light: #7a5aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1884",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 259.444,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33855,
    "c": 0.1637,
    "h": 289.2
  },
  "luminance": 0.03249
}

Semantic roles & 50–950 ramp

primary
#3B1884
secondary
#91B840
accent
#EC3CB3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1884

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

Preview Lab → · Contrast checker → · Palette generator →

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