#3A1BA0#3A1BA0

#3A1BA0 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.193 H 282.2°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#3A1BA0
RGBrgb(58, 27, 160)
HSLhsl(254, 71%, 37%)
HSVhsv(254, 83%, 63%)
CMYKcmyk(63.8%, 83.1%, 0%, 37.3%)
CIE-LABlab(24.39, 49.33, -65.54)
CIE-LCHlch(24.39, 82.03, 306.97°)
OKLaboklab(37.06% 0.0407 -0.1891)
OKLCHoklch(37.06% 0.193 282.2)
XYZxyz(8.4800, 4.2208, 33.6187)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1BA0 #81A01B
analogous
#1B3FA0 #3A1BA0 #7D1BA0
triadic
#3A1BA0 #A03A1B #1BA03A
tetradic
#3A1BA0 #A01B3F #81A01B #1BA07D
square
#3A1BA0 #A01B3F #81A01B #1BA07D
split-complementary
#3A1BA0 #A07D1B #3FA01B
monochromatic
#140937 #27126C #3A1BA0 #4D24D4 #7553E2

Accessibility & contrast

On white

11.39
#3A1BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3A1BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1BA0
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1BA0#FFFFFF#000000##FFFFFF
##3A1BA01.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00359E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a1ba0;
/* rgb */ color: rgb(58, 27, 160);
/* oklch */ color: oklch(37.1% 0.193 282.2);
Tailwind
colors: {
  custom: {
    50: '#7f5dbd',
    500: '#3a1ba0',
    950: '#000000',
  },
}
SCSS
$custom: #3a1ba0;
$custom-light: #7f5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1ba0",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 160
  },
  "hsl": {
    "h": 253.985,
    "s": 71.123,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37062,
    "c": 0.1934,
    "h": 282.2
  },
  "luminance": 0.04221
}

Semantic roles & 50–950 ramp

primary
#3A1BA0
secondary
#AAC552
accent
#EE3AC4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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