#3A1A97#3A1A97

#3A1A97 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.184 H 283.9°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#3A1A97
RGBrgb(58, 26, 151)
HSLhsl(255, 71%, 35%)
HSVhsv(255, 83%, 59%)
CMYKcmyk(61.6%, 82.8%, 0%, 40.8%)
CIE-LABlab(23.24, 47.18, -61.92)
CIE-LCHlch(23.24, 77.84, 307.31°)
OKLaboklab(35.98% 0.0443 -0.1785)
OKLCHoklch(35.98% 0.184 283.9)
XYZxyz(7.6985, 3.8722, 29.6139)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A97 #77971A
analogous
#1A3997 #3A1A97 #791A97
triadic
#3A1A97 #973A1A #1A973A
tetradic
#3A1A97 #971A39 #77971A #1A9779
square
#3A1A97 #971A39 #77971A #1A9779
split-complementary
#3A1A97 #97791A #39971A
monochromatic
#12082F #261163 #3A1A97 #4E23CB #714BE0

Accessibility & contrast

On white

11.83
#3A1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3A1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1A97
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A97#FFFFFF#000000##FFFFFF
##3A1A971.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00405A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a1a97;
/* rgb */ color: rgb(58, 26, 151);
/* oklch */ color: oklch(36.0% 0.184 283.9);
Tailwind
colors: {
  custom: {
    50: '#7d5cb7',
    500: '#3a1a97',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a97;
$custom-light: #7d5cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a97",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 255.36,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35979,
    "c": 0.18393,
    "h": 283.9
  },
  "luminance": 0.03873
}

Semantic roles & 50–950 ramp

primary
#3A1A97
secondary
#A3C24B
accent
#ED3AC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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