#3A1B86#3A1B86

#3A1B86 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.163 H 287.6°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#3A1B86
RGBrgb(58, 27, 134)
HSLhsl(257, 66%, 32%)
HSVhsv(257, 80%, 53%)
CMYKcmyk(56.7%, 79.9%, 0%, 47.5%)
CIE-LABlab(21.60, 41.78, -54.06)
CIE-LCHlch(21.60, 68.32, 307.69°)
OKLaboklab(34.29% 0.0493 -0.1556)
OKLCHoklch(34.29% 0.163 287.6)
XYZxyz(6.4387, 3.4043, 22.8675)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B86 #67861B
analogous
#1B3286 #3A1B86 #701B86
triadic
#3A1B86 #863A1B #1B863A
tetradic
#3A1B86 #861B32 #67861B #1B8670
square
#3A1B86 #861B32 #67861B #1B8670
split-complementary
#3A1B86 #86701B #32861B
monochromatic
#0E0620 #241153 #3A1B86 #5025B9 #6E42D9

Accessibility & contrast

On white

12.49
#3A1B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3A1B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1B86
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B86#FFFFFF#000000##FFFFFF
##3A1B861.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#193A50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a1b86;
/* rgb */ color: rgb(58, 27, 134);
/* oklch */ color: oklch(34.3% 0.163 287.6);
Tailwind
colors: {
  custom: {
    50: '#7a5caa',
    500: '#3a1b86',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b86;
$custom-light: #7a5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b86",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 257.383,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34295,
    "c": 0.16321,
    "h": 287.6
  },
  "luminance": 0.03405
}

Semantic roles & 50–950 ramp

primary
#3A1B86
secondary
#97B944
accent
#E93EB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1B86

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

Preview Lab → · Contrast checker → · Palette generator →

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