#3B1A84#3B1A84

#3B1A84 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.162 H 288.9°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#3B1A84
RGBrgb(59, 26, 132)
HSLhsl(259, 67%, 31%)
HSVhsv(259, 80%, 52%)
CMYKcmyk(55.3%, 80.3%, 0%, 48.2%)
CIE-LABlab(21.34, 41.81, -53.23)
CIE-LCHlch(21.34, 67.69, 308.15°)
OKLaboklab(34.08% 0.0523 -0.1531)
OKLCHoklch(34.08% 0.162 288.9)
XYZxyz(6.3367, 3.3342, 22.1350)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1A84 #63841A
analogous
#1A2E84 #3B1A84 #701A84
triadic
#3B1A84 #843B1A #1A843B
tetradic
#3B1A84 #841A2E #63841A #1A8470
square
#3B1A84 #841A2E #63841A #1A8470
split-complementary
#3B1A84 #84701A #2E841A
monochromatic
#0D061E #241051 #3B1A84 #5224B7 #6F3FD9

Accessibility & contrast

On white

12.60
#3B1A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3B1A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1A84
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1A84#FFFFFF#000000##FFFFFF
##3B1A841.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#1E394F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3b1a84;
/* rgb */ color: rgb(59, 26, 132);
/* oklch */ color: oklch(34.1% 0.162 288.9);
Tailwind
colors: {
  custom: {
    50: '#7a5ba9',
    500: '#3b1a84',
    950: '#000000',
  },
}
SCSS
$custom: #3b1a84;
$custom-light: #7a5ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1a84",
  "rgb": {
    "r": 59,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 258.679,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34079,
    "c": 0.16178,
    "h": 288.9
  },
  "luminance": 0.03335
}

Semantic roles & 50–950 ramp

primary
#3B1A84
secondary
#93B842
accent
#EA3EB4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1A84

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

Preview Lab → · Contrast checker → · Palette generator →

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