#3A1D87#3A1D87

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

Color values

HEX#3A1D87
RGBrgb(58, 29, 135)
HSLhsl(256, 65%, 32%)
HSVhsv(256, 79%, 53%)
CMYKcmyk(57%, 78.5%, 0%, 47.1%)
CIE-LABlab(22.04, 41.08, -53.95)
CIE-LCHlch(22.04, 67.81, 307.29°)
OKLaboklab(34.64% 0.0475 -0.1553)
OKLCHoklch(34.64% 0.162 287)
XYZxyz(6.5562, 3.5272, 23.2523)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D87 #6A871D
analogous
#1D3587 #3A1D87 #6F1D87
triadic
#3A1D87 #873A1D #1D873A
tetradic
#3A1D87 #871D35 #6A871D #1D876F
square
#3A1D87 #871D35 #6A871D #1D876F
split-complementary
#3A1D87 #876F1D #35871D
monochromatic
#0F0722 #241255 #3A1D87 #5028B9 #6E47D7

Accessibility & contrast

On white

12.31
#3A1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1D87
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D87#FFFFFF#000000##FFFFFF
##3A1D871.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#183B51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a1d87;
/* rgb */ color: rgb(58, 29, 135);
/* oklch */ color: oklch(34.6% 0.162 287.0);
Tailwind
colors: {
  custom: {
    50: '#7a5dab',
    500: '#3a1d87',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d87;
$custom-light: #7a5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d87",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 256.415,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34639,
    "c": 0.1624,
    "h": 287
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#3A1D87
secondary
#9AB946
accent
#E840BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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