#3A1BA1#3A1BA1

#3A1BA1 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.195 H 282.0°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#3A1BA1
RGBrgb(58, 27, 161)
HSLhsl(254, 71%, 37%)
HSVhsv(254, 83%, 63%)
CMYKcmyk(64%, 83.2%, 0%, 36.9%)
CIE-LABlab(24.50, 49.62, -65.97)
CIE-LCHlch(24.50, 82.54, 306.95°)
OKLaboklab(37.17% 0.0404 -0.1903)
OKLCHoklch(37.17% 0.195 282)
XYZxyz(8.5679, 4.2560, 34.0813)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1BA1 #82A11B
analogous
#1B3FA1 #3A1BA1 #7D1BA1
triadic
#3A1BA1 #A13A1B #1BA13A
tetradic
#3A1BA1 #A11B3F #82A11B #1BA17D
square
#3A1BA1 #A11B3F #82A11B #1BA17D
split-complementary
#3A1BA1 #A17D1B #3FA11B
monochromatic
#140938 #27126D #3A1BA1 #4D24D5 #7554E2

Accessibility & contrast

On white

11.34
#3A1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3A1BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1BA1
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1BA1#FFFFFF#000000##FFFFFF
##3A1BA11.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004560
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a1ba1;
/* rgb */ color: rgb(58, 27, 161);
/* oklch */ color: oklch(37.2% 0.195 282.0);
Tailwind
colors: {
  custom: {
    50: '#7f5dbe',
    500: '#3a1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #3a1ba1;
$custom-light: #7f5dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1ba1",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 253.881,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37172,
    "c": 0.19454,
    "h": 282
  },
  "luminance": 0.04257
}

Semantic roles & 50–950 ramp

primary
#3A1BA1
secondary
#ABC552
accent
#EE3AC4
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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