#3A1BAA#3A1BAA

#3A1BAA is a dark, highly saturated violet. Relative luminance 0.046; OKLCH L 38.2% C 0.205 H 280.5°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#3A1BAA
RGBrgb(58, 27, 170)
HSLhsl(253, 73%, 39%)
HSVhsv(253, 84%, 67%)
CMYKcmyk(65.9%, 84.1%, 0%, 33.3%)
CIE-LABlab(25.52, 52.19, -69.74)
CIE-LCHlch(25.52, 87.10, 306.81°)
OKLaboklab(38.17% 0.0373 -0.2013)
OKLCHoklch(38.17% 0.205 280.5)
XYZxyz(9.3903, 4.5849, 38.4126)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1BAA #8BAA1B
analogous
#1B43AA #3A1BAA #811BAA
triadic
#3A1BAA #AA3A1B #1BAA3A
tetradic
#3A1BAA #AA1B43 #8BAA1B #1BAA81
square
#3A1BAA #AA1B43 #8BAA1B #1BAA81
split-complementary
#3A1BAA #AA811B #43AA1B
monochromatic
#160A40 #281375 #3A1BAA #4D26DC #795BE5

Accessibility & contrast

On white

10.95
#3A1BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3A1BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1BAA
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1BAA#FFFFFF#000000##FFFFFF
##3A1BAA1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AE
Deuteranopia (green-blind)
#0037A8
Tritanopia (blue-blind)
#004965
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a1baa;
/* rgb */ color: rgb(58, 27, 170);
/* oklch */ color: oklch(38.2% 0.205 280.5);
Tailwind
colors: {
  custom: {
    50: '#815ec5',
    500: '#3a1baa',
    950: '#000000',
  },
}
SCSS
$custom: #3a1baa;
$custom-light: #815ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1baa",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 170
  },
  "hsl": {
    "h": 253.007,
    "s": 72.589,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38169,
    "c": 0.2047,
    "h": 280.5
  },
  "luminance": 0.04586
}

Semantic roles & 50–950 ramp

primary
#3A1BAA
secondary
#B0C958
accent
#EF39C8
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A1BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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