#3B1A82#3B1A82

#3B1A82 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.159 H 289.4°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#3B1A82
RGBrgb(59, 26, 130)
HSLhsl(259, 67%, 31%)
HSVhsv(259, 80%, 51%)
CMYKcmyk(54.6%, 80%, 0%, 49%)
CIE-LABlab(21.13, 41.23, -52.30)
CIE-LCHlch(21.13, 66.60, 308.25°)
OKLaboklab(33.88% 0.0529 -0.1504)
OKLCHoklch(33.88% 0.159 289.4)
XYZxyz(6.2011, 3.2800, 21.4211)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1A82 #61821A
analogous
#1A2D82 #3B1A82 #6F1A82
triadic
#3B1A82 #823B1A #1A823B
tetradic
#3B1A82 #821A2D #61821A #1A826F
square
#3B1A82 #821A2D #61821A #1A826F
split-complementary
#3B1A82 #826F1A #2D821A
monochromatic
#0D061C #24104F #3B1A82 #5224B5 #6F3ED8

Accessibility & contrast

On white

12.68
#3B1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3B1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1A82
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1A82#FFFFFF#000000##FFFFFF
##3B1A821.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#20384D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3b1a82;
/* rgb */ color: rgb(59, 26, 130);
/* oklch */ color: oklch(33.9% 0.159 289.4);
Tailwind
colors: {
  custom: {
    50: '#7a5ba7',
    500: '#3b1a82',
    950: '#000000',
  },
}
SCSS
$custom: #3b1a82;
$custom-light: #7a5ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1a82",
  "rgb": {
    "r": 59,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 259.038,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33875,
    "c": 0.15943,
    "h": 289.4
  },
  "luminance": 0.0328
}

Semantic roles & 50–950 ramp

primary
#3B1A82
secondary
#91B642
accent
#EA3EB3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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