#3A1BAD#3A1BAD

#3A1BAD is a dark, highly saturated violet. Relative luminance 0.047; OKLCH L 38.5% C 0.208 H 280.0°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#3A1BAD
RGBrgb(58, 27, 173)
HSLhsl(253, 73%, 39%)
HSVhsv(253, 84%, 68%)
CMYKcmyk(66.5%, 84.4%, 0%, 32.2%)
CIE-LABlab(25.86, 53.04, -70.97)
CIE-LCHlch(25.86, 88.60, 306.77°)
OKLaboklab(38.51% 0.0363 -0.2049)
OKLCHoklch(38.51% 0.208 280)
XYZxyz(9.6773, 4.6997, 39.9242)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1BAD #8EAD1B
analogous
#1B45AD #3A1BAD #831BAD
triadic
#3A1BAD #AD3A1B #1BAD3A
tetradic
#3A1BAD #AD1B45 #8EAD1B #1BAD83
square
#3A1BAD #AD1B45 #8EAD1B #1BAD83
split-complementary
#3A1BAD #AD831B #45AD1B
monochromatic
#170A43 #281378 #3A1BAD #4E28DD #7A5DE6

Accessibility & contrast

On white

10.82
#3A1BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3A1BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1BAD
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1BAD#FFFFFF#000000##FFFFFF
##3A1BAD1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B1
Deuteranopia (green-blind)
#0038AB
Tritanopia (blue-blind)
#004A67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a1bad;
/* rgb */ color: rgb(58, 27, 173);
/* oklch */ color: oklch(38.5% 0.208 280.0);
Tailwind
colors: {
  custom: {
    50: '#815ec7',
    500: '#3a1bad',
    950: '#000000',
  },
}
SCSS
$custom: #3a1bad;
$custom-light: #815ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1bad",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 173
  },
  "hsl": {
    "h": 252.74,
    "s": 73,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38505,
    "c": 0.20805,
    "h": 280
  },
  "luminance": 0.04701
}

Semantic roles & 50–950 ramp

primary
#3A1BAD
secondary
#B2CA5A
accent
#F038C9
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A1BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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