#3A1A93#3A1A93

#3A1A93 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.179 H 284.8°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#3A1A93
RGBrgb(58, 26, 147)
HSLhsl(256, 70%, 34%)
HSVhsv(256, 82%, 58%)
CMYKcmyk(60.5%, 82.3%, 0%, 42.4%)
CIE-LABlab(22.81, 46.03, -60.17)
CIE-LCHlch(22.81, 75.76, 307.41°)
OKLaboklab(35.55% 0.0457 -0.1734)
OKLCHoklch(35.55% 0.179 284.8)
XYZxyz(7.3792, 3.7444, 27.9320)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A93 #73931A
analogous
#1A3793 #3A1A93 #771A93
triadic
#3A1A93 #933A1A #1A933A
tetradic
#3A1A93 #931A37 #73931A #1A9377
square
#3A1A93 #931A37 #73931A #1A9377
split-complementary
#3A1A93 #93771A #37931A
monochromatic
#11082B #25115F #3A1A93 #4F23C7 #7049DF

Accessibility & contrast

On white

12.01
#3A1A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3A1A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1A93
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A93#FFFFFF#000000##FFFFFF
##3A1A931.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003391
Tritanopia (blue-blind)
#013F57
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a1a93;
/* rgb */ color: rgb(58, 26, 147);
/* oklch */ color: oklch(35.5% 0.179 284.8);
Tailwind
colors: {
  custom: {
    50: '#7c5cb4',
    500: '#3a1a93',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a93;
$custom-light: #7c5cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a93",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 147
  },
  "hsl": {
    "h": 255.868,
    "s": 69.942,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35548,
    "c": 0.17933,
    "h": 284.8
  },
  "luminance": 0.03745
}

Semantic roles & 50–950 ramp

primary
#3A1A93
secondary
#A1C048
accent
#ED3BBE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1A93

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

Preview Lab → · Contrast checker → · Palette generator →

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