#3A1A9B#3A1A9B

#3A1A9B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.189 H 283.2°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#3A1A9B
RGBrgb(58, 26, 155)
HSLhsl(255, 71%, 35%)
HSVhsv(255, 83%, 61%)
CMYKcmyk(62.6%, 83.2%, 0%, 39.2%)
CIE-LABlab(23.69, 48.33, -63.65)
CIE-LCHlch(23.69, 79.92, 307.21°)
OKLaboklab(36.41% 0.043 -0.1835)
OKLCHoklch(36.41% 0.189 283.2)
XYZxyz(8.0289, 4.0043, 31.3538)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A9B #7B9B1A
analogous
#1A3A9B #3A1A9B #7B1A9B
triadic
#3A1A9B #9B3A1A #1A9B3A
tetradic
#3A1A9B #9B1A3A #7B9B1A #1A9B7B
square
#3A1A9B #9B1A3A #7B9B1A #1A9B7B
split-complementary
#3A1A9B #9B7B1A #3A9B1A
monochromatic
#130832 #261167 #3A1A9B #4E23CF #734EE1

Accessibility & contrast

On white

11.66
#3A1A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3A1A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1A9B
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A9B#FFFFFF#000000##FFFFFF
##3A1A9B1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1a9b;
/* rgb */ color: rgb(58, 26, 155);
/* oklch */ color: oklch(36.4% 0.189 283.2);
Tailwind
colors: {
  custom: {
    50: '#7e5dba',
    500: '#3a1a9b',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a9b;
$custom-light: #7e5dba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a9b",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 254.884,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36414,
    "c": 0.1885,
    "h": 283.2
  },
  "luminance": 0.04005
}

Semantic roles & 50–950 ramp

primary
#3A1A9B
secondary
#A6C44D
accent
#EE3AC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A1A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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