#3A1A87#3A1A87

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

Color values

HEX#3A1A87
RGBrgb(58, 26, 135)
HSLhsl(258, 68%, 32%)
HSVhsv(258, 81%, 53%)
CMYKcmyk(57%, 80.7%, 0%, 47.1%)
CIE-LABlab(21.53, 42.55, -54.79)
CIE-LCHlch(21.53, 69.37, 307.83°)
OKLaboklab(34.28% 0.0497 -0.1577)
OKLCHoklch(34.28% 0.165 287.5)
XYZxyz(6.4862, 3.3873, 23.2290)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A87 #67871A
analogous
#1A3087 #3A1A87 #711A87
triadic
#3A1A87 #873A1A #1A873A
tetradic
#3A1A87 #871A30 #67871A #1A8771
square
#3A1A87 #871A30 #67871A #1A8771
split-complementary
#3A1A87 #87711A #30871A
monochromatic
#0E0620 #241054 #3A1A87 #5024BA #6E41DA

Accessibility & contrast

On white

12.52
#3A1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1A87
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A87#FFFFFF#000000##FFFFFF
##3A1A871.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#183A50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a1a87;
/* rgb */ color: rgb(58, 26, 135);
/* oklch */ color: oklch(34.3% 0.165 287.5);
Tailwind
colors: {
  custom: {
    50: '#7a5bab',
    500: '#3a1a87',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a87;
$custom-light: #7a5bab;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a87",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 257.615,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34283,
    "c": 0.16536,
    "h": 287.5
  },
  "luminance": 0.03388
}

Semantic roles & 50–950 ramp

primary
#3A1A87
secondary
#97BA42
accent
#EB3DB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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