#3A1D8D#3A1D8D

#3A1D8D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.170 H 285.6°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#3A1D8D
RGBrgb(58, 29, 141)
HSLhsl(256, 66%, 33%)
HSVhsv(256, 79%, 55%)
CMYKcmyk(58.9%, 79.4%, 0%, 44.7%)
CIE-LABlab(22.66, 42.86, -56.69)
CIE-LCHlch(22.66, 71.07, 307.09°)
OKLaboklab(35.25% 0.0457 -0.1633)
OKLCHoklch(35.25% 0.17 285.6)
XYZxyz(6.9906, 3.7009, 25.5401)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D8D #708D1D
analogous
#1D388D #3A1D8D #721D8D
triadic
#3A1D8D #8D3A1D #1D8D3A
tetradic
#3A1D8D #8D1D38 #708D1D #1D8D72
square
#3A1D8D #8D1D38 #708D1D #1D8D72
split-complementary
#3A1D8D #8D721D #388D1D
monochromatic
#100827 #25135A #3A1D8D #4F27C0 #704BDA

Accessibility & contrast

On white

12.07
#3A1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3A1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1D8D
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D8D#FFFFFF#000000##FFFFFF
##3A1D8D1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#0E3E54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a1d8d;
/* rgb */ color: rgb(58, 29, 141);
/* oklch */ color: oklch(35.3% 0.170 285.6);
Tailwind
colors: {
  custom: {
    50: '#7b5daf',
    500: '#3a1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d8d;
$custom-light: #7b5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d8d",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 255.536,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35253,
    "c": 0.16958,
    "h": 285.6
  },
  "luminance": 0.03701
}

Semantic roles & 50–950 ramp

primary
#3A1D8D
secondary
#9EBC4A
accent
#E93FBD
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #3A1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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