#3A1C8A#3A1C8A

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

Color values

HEX#3A1C8A
RGBrgb(58, 28, 138)
HSLhsl(256, 66%, 33%)
HSVhsv(256, 80%, 54%)
CMYKcmyk(58%, 79.7%, 0%, 45.9%)
CIE-LABlab(22.18, 42.47, -55.61)
CIE-LCHlch(22.18, 69.97, 307.36°)
OKLaboklab(34.83% 0.0473 -0.1601)
OKLCHoklch(34.83% 0.167 286.5)
XYZxyz(6.7462, 3.5646, 24.3724)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1C8A #6C8A1C
analogous
#1C358A #3A1C8A #711C8A
triadic
#3A1C8A #8A3A1C #1C8A3A
tetradic
#3A1C8A #8A1C35 #6C8A1C #1C8A71
square
#3A1C8A #8A1C35 #6C8A1C #1C8A71
split-complementary
#3A1C8A #8A711C #358A1C
monochromatic
#0F0724 #251257 #3A1C8A #4F26BD #6F47DA

Accessibility & contrast

On white

12.26
#3A1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1C8A
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1C8A#FFFFFF#000000##FFFFFF
##3A1C8A1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1c8a;
/* rgb */ color: rgb(58, 28, 138);
/* oklch */ color: oklch(34.8% 0.167 286.5);
Tailwind
colors: {
  custom: {
    50: '#7a5cad',
    500: '#3a1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #3a1c8a;
$custom-light: #7a5cad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1c8a",
  "rgb": {
    "r": 58,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 256.364,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34825,
    "c": 0.16698,
    "h": 286.5
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#3A1C8A
secondary
#9BBB46
accent
#E93FBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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