#3B1A89#3B1A89

#3B1A89 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.168 H 287.6°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#3B1A89
RGBrgb(59, 26, 137)
HSLhsl(258, 68%, 32%)
HSVhsv(258, 81%, 54%)
CMYKcmyk(56.9%, 81%, 0%, 46.3%)
CIE-LABlab(21.85, 43.26, -55.52)
CIE-LCHlch(21.85, 70.38, 307.92°)
OKLaboklab(34.59% 0.0507 -0.1598)
OKLCHoklch(34.59% 0.168 287.6)
XYZxyz(6.6870, 3.4744, 23.9803)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1A89 #68891A
analogous
#1A3189 #3B1A89 #731A89
triadic
#3B1A89 #893B1A #1A893B
tetradic
#3B1A89 #891A31 #68891A #1A8973
square
#3B1A89 #891A31 #68891A #1A8973
split-complementary
#3B1A89 #89731A #31891A
monochromatic
#0F0622 #251056 #3B1A89 #5124BC #7042DB

Accessibility & contrast

On white

12.39
#3B1A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3B1A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1A89
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1A89#FFFFFF#000000##FFFFFF
##3B1A891.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#183B52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3b1a89;
/* rgb */ color: rgb(59, 26, 137);
/* oklch */ color: oklch(34.6% 0.168 287.6);
Tailwind
colors: {
  custom: {
    50: '#7b5bad',
    500: '#3b1a89',
    950: '#000000',
  },
}
SCSS
$custom: #3b1a89;
$custom-light: #7b5bad;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1a89",
  "rgb": {
    "r": 59,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 257.838,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34593,
    "c": 0.16764,
    "h": 287.6
  },
  "luminance": 0.03475
}

Semantic roles & 50–950 ramp

primary
#3B1A89
secondary
#98BC43
accent
#EB3DB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1A89

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

Preview Lab → · Contrast checker → · Palette generator →

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