#3A1886#3A1886

#3A1886 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.166 H 288.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#3A1886
RGBrgb(58, 24, 134)
HSLhsl(259, 70%, 31%)
HSVhsv(259, 82%, 53%)
CMYKcmyk(56.7%, 82.1%, 0%, 47.5%)
CIE-LABlab(21.11, 43.18, -54.86)
CIE-LCHlch(21.11, 69.82, 308.21°)
OKLaboklab(33.96% 0.0514 -0.1579)
OKLCHoklch(33.96% 0.166 288)
XYZxyz(6.3734, 3.2737, 22.8457)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1886 #648618
analogous
#182D86 #3A1886 #711886
triadic
#3A1886 #863A18 #18863A
tetradic
#3A1886 #86182D #648618 #188671
square
#3A1886 #86182D #648618 #188671
split-complementary
#3A1886 #867118 #2D8618
monochromatic
#0D051E #240F52 #3A1886 #5021BA #6E3CDC

Accessibility & contrast

On white

12.69
#3A1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3A1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1886
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1886#FFFFFF#000000##FFFFFF
##3A18861.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#19394F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a1886;
/* rgb */ color: rgb(58, 24, 134);
/* oklch */ color: oklch(34.0% 0.166 288.0);
Tailwind
colors: {
  custom: {
    50: '#7a5aaa',
    500: '#3a1886',
    950: '#000000',
  },
}
SCSS
$custom: #3a1886;
$custom-light: #7a5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1886",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 258.545,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33957,
    "c": 0.16606,
    "h": 288
  },
  "luminance": 0.03274
}

Semantic roles & 50–950 ramp

primary
#3A1886
secondary
#94BA40
accent
#EC3BB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1886

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

Preview Lab → · Contrast checker → · Palette generator →

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