#3B1579#3B1579

#3B1579 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.154 H 292.8°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#3B1579
RGBrgb(59, 21, 121)
HSLhsl(263, 70%, 28%)
HSVhsv(263, 83%, 47%)
CMYKcmyk(51.2%, 82.6%, 0%, 52.5%)
CIE-LABlab(19.42, 40.99, -49.40)
CIE-LCHlch(19.42, 64.19, 309.69°)
OKLaboklab(32.41% 0.0597 -0.1418)
OKLCHoklch(32.41% 0.154 292.8)
XYZxyz(5.5220, 2.8464, 18.3439)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1579 #537915
analogous
#152179 #3B1579 #6D1579
triadic
#3B1579 #793B15 #15793B
tetradic
#3B1579 #791521 #537915 #15796D
square
#3B1579 #791521 #537915 #15796D
split-complementary
#3B1579 #796D15 #217915
monochromatic
#0D051A #220C45 #3B1579 #541EAD #6F2EDB

Accessibility & contrast

On white

13.38
#3B1579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3B1579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1579
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1579#FFFFFF#000000##FFFFFF
##3B15791.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#273247
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3b1579;
/* rgb */ color: rgb(59, 21, 121);
/* oklch */ color: oklch(32.4% 0.154 292.8);
Tailwind
colors: {
  custom: {
    50: '#7958a1',
    500: '#3b1579',
    950: '#000000',
  },
}
SCSS
$custom: #3b1579;
$custom-light: #7958a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1579",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 262.8,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32406,
    "c": 0.15388,
    "h": 292.8
  },
  "luminance": 0.02847
}

Semantic roles & 50–950 ramp

primary
#3B1579
secondary
#83AF3B
accent
#ED3BA9
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3B1579

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

Preview Lab → · Contrast checker → · Palette generator →

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