#3A1A96#3A1A96

#3A1A96 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.183 H 284.1°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#3A1A96
RGBrgb(58, 26, 150)
HSLhsl(255, 70%, 35%)
HSVhsv(255, 83%, 59%)
CMYKcmyk(61.3%, 82.7%, 0%, 41.2%)
CIE-LABlab(23.13, 46.89, -61.48)
CIE-LCHlch(23.13, 77.32, 307.33°)
OKLaboklab(35.87% 0.0447 -0.1772)
OKLCHoklch(35.87% 0.183 284.1)
XYZxyz(7.6176, 3.8398, 29.1880)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A96 #76961A
analogous
#1A3896 #3A1A96 #781A96
triadic
#3A1A96 #963A1A #1A963A
tetradic
#3A1A96 #961A38 #76961A #1A9678
square
#3A1A96 #961A38 #76961A #1A9678
split-complementary
#3A1A96 #96781A #38961A
monochromatic
#12082E #261162 #3A1A96 #4E23CA #714BE0

Accessibility & contrast

On white

11.88
#3A1A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3A1A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1A96
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A96#FFFFFF#000000##FFFFFF
##3A1A961.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a1a96;
/* rgb */ color: rgb(58, 26, 150);
/* oklch */ color: oklch(35.9% 0.183 284.1);
Tailwind
colors: {
  custom: {
    50: '#7d5cb6',
    500: '#3a1a96',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a96;
$custom-light: #7d5cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a96",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 255.484,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35871,
    "c": 0.18278,
    "h": 284.1
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#3A1A96
secondary
#A3C24A
accent
#ED3BBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1A96

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

Preview Lab → · Contrast checker → · Palette generator →

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