#3A1D8A#3A1D8A

#3A1D8A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.166 H 286.3°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#3A1D8A
RGBrgb(58, 29, 138)
HSLhsl(256, 65%, 33%)
HSVhsv(256, 79%, 54%)
CMYKcmyk(58%, 79%, 0%, 45.9%)
CIE-LABlab(22.35, 41.97, -55.33)
CIE-LCHlch(22.35, 69.45, 307.18°)
OKLaboklab(34.95% 0.0466 -0.1593)
OKLCHoklch(34.95% 0.166 286.3)
XYZxyz(6.7704, 3.6129, 24.3804)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D8A #6D8A1D
analogous
#1D378A #3A1D8A #701D8A
triadic
#3A1D8A #8A3A1D #1D8A3A
tetradic
#3A1D8A #8A1D37 #6D8A1D #1D8A70
square
#3A1D8A #8A1D37 #6D8A1D #1D8A70
split-complementary
#3A1D8A #8A701D #378A1D
monochromatic
#0F0825 #251257 #3A1D8A #4F28BD #6F49D9

Accessibility & contrast

On white

12.19
#3A1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1D8A
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D8A#FFFFFF#000000##FFFFFF
##3A1D8A1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#133C53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a1d8a;
/* rgb */ color: rgb(58, 29, 138);
/* oklch */ color: oklch(34.9% 0.166 286.3);
Tailwind
colors: {
  custom: {
    50: '#7a5dad',
    500: '#3a1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d8a;
$custom-light: #7a5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d8a",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 255.963,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34945,
    "c": 0.16599,
    "h": 286.3
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

primary
#3A1D8A
secondary
#9CBB48
accent
#E840BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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