#3A1A86#3A1A86

#3A1A86 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.164 H 287.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#3A1A86
RGBrgb(58, 26, 134)
HSLhsl(258, 68%, 31%)
HSVhsv(258, 81%, 53%)
CMYKcmyk(56.7%, 80.6%, 0%, 47.5%)
CIE-LABlab(21.43, 42.26, -54.34)
CIE-LCHlch(21.43, 68.83, 307.87°)
OKLaboklab(34.18% 0.05 -0.1564)
OKLCHoklch(34.18% 0.164 287.7)
XYZxyz(6.4161, 3.3592, 22.8599)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A86 #66861A
analogous
#1A3086 #3A1A86 #701A86
triadic
#3A1A86 #863A1A #1A863A
tetradic
#3A1A86 #861A30 #66861A #1A8670
square
#3A1A86 #861A30 #66861A #1A8670
split-complementary
#3A1A86 #86701A #30861A
monochromatic
#0E061F #241053 #3A1A86 #5024B9 #6E40DA

Accessibility & contrast

On white

12.56
#3A1A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3A1A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1A86
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A86#FFFFFF#000000##FFFFFF
##3A1A861.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#193950
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a1a86;
/* rgb */ color: rgb(58, 26, 134);
/* oklch */ color: oklch(34.2% 0.164 287.7);
Tailwind
colors: {
  custom: {
    50: '#7a5baa',
    500: '#3a1a86',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a86;
$custom-light: #7a5baa;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a86",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 257.778,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34179,
    "c": 0.16419,
    "h": 287.7
  },
  "luminance": 0.0336
}

Semantic roles & 50–950 ramp

primary
#3A1A86
secondary
#96B942
accent
#EA3DB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1A86

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

Preview Lab → · Contrast checker → · Palette generator →

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