#3A1E86#3A1E86

#3A1E86 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.160 H 287.1°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#3A1E86
RGBrgb(58, 30, 134)
HSLhsl(256, 63%, 32%)
HSVhsv(256, 78%, 53%)
CMYKcmyk(56.7%, 77.6%, 0%, 47.5%)
CIE-LABlab(22.12, 40.27, -53.20)
CIE-LCHlch(22.12, 66.72, 307.13°)
OKLaboklab(34.66% 0.047 -0.1531)
OKLCHoklch(34.66% 0.16 287.1)
XYZxyz(6.5110, 3.5490, 22.8916)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E86 #6A861E
analogous
#1E3686 #3A1E86 #6E1E86
triadic
#3A1E86 #863A1E #1E863A
tetradic
#3A1E86 #861E36 #6A861E #1E866E
square
#3A1E86 #861E36 #6A861E #1E866E
split-complementary
#3A1E86 #866E1E #36861E
monochromatic
#0F0822 #241354 #3A1E86 #5029B8 #6E48D6

Accessibility & contrast

On white

12.28
#3A1E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3A1E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E86
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E86#FFFFFF#000000##FFFFFF
##3A1E861.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#193B51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a1e86;
/* rgb */ color: rgb(58, 30, 134);
/* oklch */ color: oklch(34.7% 0.160 287.1);
Tailwind
colors: {
  custom: {
    50: '#795daa',
    500: '#3a1e86',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e86;
$custom-light: #795daa;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e86",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 134
  },
  "hsl": {
    "h": 256.154,
    "s": 63.415,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34663,
    "c": 0.16015,
    "h": 287.1
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

primary
#3A1E86
secondary
#9AB847
accent
#E641BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1E86

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

Preview Lab → · Contrast checker → · Palette generator →

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