#3A1E87#3A1E87

#3A1E87 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.161 H 286.8°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#3A1E87
RGBrgb(58, 30, 135)
HSLhsl(256, 64%, 32%)
HSVhsv(256, 78%, 53%)
CMYKcmyk(57%, 77.8%, 0%, 47.1%)
CIE-LABlab(22.22, 40.57, -53.66)
CIE-LCHlch(22.22, 67.27, 307.09°)
OKLaboklab(34.76% 0.0467 -0.1544)
OKLCHoklch(34.76% 0.161 286.8)
XYZxyz(6.5811, 3.5770, 23.2606)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E87 #6B871E
analogous
#1E3787 #3A1E87 #6F1E87
triadic
#3A1E87 #873A1E #1E873A
tetradic
#3A1E87 #871E37 #6B871E #1E876F
square
#3A1E87 #871E37 #6B871E #1E876F
split-complementary
#3A1E87 #876F1E #37871E
monochromatic
#0F0823 #241355 #3A1E87 #5029B9 #6F49D7

Accessibility & contrast

On white

12.24
#3A1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3A1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E87
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E87#FFFFFF#000000##FFFFFF
##3A1E871.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#173C51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a1e87;
/* rgb */ color: rgb(58, 30, 135);
/* oklch */ color: oklch(34.8% 0.161 286.8);
Tailwind
colors: {
  custom: {
    50: '#7a5dab',
    500: '#3a1e87',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e87;
$custom-light: #7a5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e87",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 256,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34763,
    "c": 0.16136,
    "h": 286.8
  },
  "luminance": 0.03577
}

Semantic roles & 50–950 ramp

primary
#3A1E87
secondary
#9BB948
accent
#E741BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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