#3A1B9B#3A1B9B

#3A1B9B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.188 H 283.1°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#3A1B9B
RGBrgb(58, 27, 155)
HSLhsl(255, 70%, 36%)
HSVhsv(255, 83%, 61%)
CMYKcmyk(62.6%, 82.6%, 0%, 39.2%)
CIE-LABlab(23.83, 47.89, -63.40)
CIE-LCHlch(23.83, 79.46, 307.07°)
OKLaboklab(36.52% 0.0424 -0.1828)
OKLCHoklch(36.52% 0.188 283.1)
XYZxyz(8.0514, 4.0494, 31.3613)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B9B #7C9B1B
analogous
#1B3C9B #3A1B9B #7A1B9B
triadic
#3A1B9B #9B3A1B #1B9B3A
tetradic
#3A1B9B #9B1B3C #7C9B1B #1B9B7A
square
#3A1B9B #9B1B3C #7C9B1B #1B9B7A
split-complementary
#3A1B9B #9B7A1B #3C9B1B
monochromatic
#130933 #261267 #3A1B9B #4E24CF #7350E0

Accessibility & contrast

On white

11.60
#3A1B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3A1B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1B9B
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B9B#FFFFFF#000000##FFFFFF
##3A1B9B1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a1b9b;
/* rgb */ color: rgb(58, 27, 155);
/* oklch */ color: oklch(36.5% 0.188 283.1);
Tailwind
colors: {
  custom: {
    50: '#7e5dba',
    500: '#3a1b9b',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b9b;
$custom-light: #7e5dba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b9b",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 254.531,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36516,
    "c": 0.18769,
    "h": 283.1
  },
  "luminance": 0.0405
}

Semantic roles & 50–950 ramp

primary
#3A1B9B
secondary
#A7C34F
accent
#ED3BC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A1B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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