#3A1AB4#3A1AB4

#3A1AB4 is a dark, highly saturated violet. Relative luminance 0.049; OKLCH L 39.2% C 0.216 H 279.1°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#3A1AB4
RGBrgb(58, 26, 180)
HSLhsl(252, 75%, 40%)
HSVhsv(252, 86%, 71%)
CMYKcmyk(67.8%, 85.6%, 0%, 29.4%)
CIE-LABlab(26.54, 55.39, -74.04)
CIE-LCHlch(26.54, 92.47, 306.80°)
OKLaboklab(39.21% 0.0342 -0.2138)
OKLCHoklch(39.21% 0.216 279.1)
XYZxyz(10.3499, 4.9327, 43.5779)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1AB4 #94B41A
analogous
#1A47B4 #3A1AB4 #871AB4
triadic
#3A1AB4 #B43A1A #1AB43A
tetradic
#3A1AB4 #B41A47 #94B41A #1AB487
square
#3A1AB4 #B41A47 #94B41A #1AB487
split-complementary
#3A1AB4 #B4871A #47B41A
monochromatic
#180B49 #29127F #3A1AB4 #512BE0 #7D60E8

Accessibility & contrast

On white

10.57
#3A1AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3A1AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1AB4
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1AB4#FFFFFF#000000##FFFFFF
##3A1AB41.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#0039B1
Tritanopia (blue-blind)
#004D6B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3a1ab4;
/* rgb */ color: rgb(58, 26, 180);
/* oklch */ color: oklch(39.2% 0.216 279.1);
Tailwind
colors: {
  custom: {
    50: '#835fcc',
    500: '#3a1ab4',
    950: '#000000',
  },
}
SCSS
$custom: #3a1ab4;
$custom-light: #835fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1ab4",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 252.468,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39207,
    "c": 0.21648,
    "h": 279.1
  },
  "luminance": 0.04934
}

Semantic roles & 50–950 ramp

primary
#3A1AB4
secondary
#B5CC5D
accent
#F136CB
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3A1AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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