#3B1A97#3B1A97

#3B1A97 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.184 H 284.5°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#3B1A97
RGBrgb(59, 26, 151)
HSLhsl(256, 71%, 35%)
HSVhsv(256, 83%, 59%)
CMYKcmyk(60.9%, 82.8%, 0%, 40.8%)
CIE-LABlab(23.35, 47.29, -61.75)
CIE-LCHlch(23.35, 77.77, 307.45°)
OKLaboklab(36.07% 0.0459 -0.178)
OKLCHoklch(36.07% 0.184 284.5)
XYZxyz(7.7572, 3.9025, 29.6166)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1A97 #76971A
analogous
#1A3897 #3B1A97 #7A1A97
triadic
#3B1A97 #973B1A #1A973B
tetradic
#3B1A97 #971A38 #76971A #1A977A
square
#3B1A97 #971A38 #76971A #1A977A
split-complementary
#3B1A97 #977A1A #38971A
monochromatic
#12082F #271163 #3B1A97 #4F23CB #734BE0

Accessibility & contrast

On white

11.79
#3B1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3B1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1A97
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1A97#FFFFFF#000000##FFFFFF
##3B1A971.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00405A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3b1a97;
/* rgb */ color: rgb(59, 26, 151);
/* oklch */ color: oklch(36.1% 0.184 284.5);
Tailwind
colors: {
  custom: {
    50: '#7d5cb7',
    500: '#3b1a97',
    950: '#000000',
  },
}
SCSS
$custom: #3b1a97;
$custom-light: #7d5cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1a97",
  "rgb": {
    "r": 59,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 255.84,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36074,
    "c": 0.18381,
    "h": 284.5
  },
  "luminance": 0.03903
}

Semantic roles & 50–950 ramp

primary
#3B1A97
secondary
#A3C24B
accent
#ED3ABE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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