#3B1879#3B1879

#3B1879 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.151 H 292.3°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#3B1879
RGBrgb(59, 24, 121)
HSLhsl(262, 67%, 28%)
HSVhsv(262, 80%, 47%)
CMYKcmyk(51.2%, 80.2%, 0%, 52.5%)
CIE-LABlab(19.90, 39.61, -48.61)
CIE-LCHlch(19.90, 62.70, 309.17°)
OKLaboklab(32.74% 0.0573 -0.1396)
OKLCHoklch(32.74% 0.151 292.3)
XYZxyz(5.5805, 2.9633, 18.3634)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1879 #567918
analogous
#182679 #3B1879 #6B1879
triadic
#3B1879 #793B18 #18793B
tetradic
#3B1879 #791826 #567918 #18796B
square
#3B1879 #791826 #567918 #18796B
split-complementary
#3B1879 #796B18 #267918
monochromatic
#0C051A #220E46 #3B1879 #5422AC #6F35D7

Accessibility & contrast

On white

13.18
#3B1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3B1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1879
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1879#FFFFFF#000000##FFFFFF
##3B18791.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#273348
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3b1879;
/* rgb */ color: rgb(59, 24, 121);
/* oklch */ color: oklch(32.7% 0.151 292.3);
Tailwind
colors: {
  custom: {
    50: '#7859a1',
    500: '#3b1879',
    950: '#000000',
  },
}
SCSS
$custom: #3b1879;
$custom-light: #7859a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1879",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 261.649,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32739,
    "c": 0.15087,
    "h": 292.3
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#3B1879
secondary
#86AE3F
accent
#EA3EAC
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B1879

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

Preview Lab → · Contrast checker → · Palette generator →

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