#3A1AB3#3A1AB3

#3A1AB3 is a dark, highly saturated violet. Relative luminance 0.049; OKLCH L 39.1% C 0.215 H 279.2°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#3A1AB3
RGBrgb(58, 26, 179)
HSLhsl(253, 75%, 40%)
HSVhsv(253, 85%, 70%)
CMYKcmyk(67.6%, 85.5%, 0%, 29.8%)
CIE-LABlab(26.43, 55.11, -73.64)
CIE-LCHlch(26.43, 91.98, 306.81°)
OKLaboklab(39.09% 0.0346 -0.2126)
OKLCHoklch(39.09% 0.215 279.2)
XYZxyz(10.2484, 4.8921, 43.0433)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1AB3 #93B31A
analogous
#1A46B3 #3A1AB3 #861AB3
triadic
#3A1AB3 #B33A1A #1AB33A
tetradic
#3A1AB3 #B31A46 #93B31A #1AB386
square
#3A1AB3 #B31A46 #93B31A #1AB386
split-complementary
#3A1AB3 #B3861A #46B31A
monochromatic
#170A48 #29127E #3A1AB3 #502AE0 #7C60E8

Accessibility & contrast

On white

10.61
#3A1AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3A1AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1AB3
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1AB3#FFFFFF#000000##FFFFFF
##3A1AB31.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0038B0
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a1ab3;
/* rgb */ color: rgb(58, 26, 179);
/* oklch */ color: oklch(39.1% 0.215 279.2);
Tailwind
colors: {
  custom: {
    50: '#835ecb',
    500: '#3a1ab3',
    950: '#000000',
  },
}
SCSS
$custom: #3a1ab3;
$custom-light: #835ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1ab3",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 252.549,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39093,
    "c": 0.21538,
    "h": 279.2
  },
  "luminance": 0.04893
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A1AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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