#3A1986#3A1986

#3A1986 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.165 H 287.9°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#3A1986
RGBrgb(58, 25, 134)
HSLhsl(258, 69%, 31%)
HSVhsv(258, 81%, 53%)
CMYKcmyk(56.7%, 81.3%, 0%, 47.5%)
CIE-LABlab(21.27, 42.73, -54.60)
CIE-LCHlch(21.27, 69.33, 308.04°)
OKLaboklab(34.07% 0.0507 -0.1572)
OKLCHoklch(34.07% 0.165 287.9)
XYZxyz(6.3944, 3.3157, 22.8527)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1986 #658619
analogous
#192E86 #3A1986 #701986
triadic
#3A1986 #863A19 #19863A
tetradic
#3A1986 #86192E #658619 #198670
square
#3A1986 #86192E #658619 #198670
split-complementary
#3A1986 #867019 #2E8619
monochromatic
#0D061F #240F52 #3A1986 #5023BA #6E3EDB

Accessibility & contrast

On white

12.63
#3A1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3A1986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1986
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1986#FFFFFF#000000##FFFFFF
##3A19861.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1986;
/* rgb */ color: rgb(58, 25, 134);
/* oklch */ color: oklch(34.1% 0.165 287.9);
Tailwind
colors: {
  custom: {
    50: '#7a5baa',
    500: '#3a1986',
    950: '#000000',
  },
}
SCSS
$custom: #3a1986;
$custom-light: #7a5baa;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1986",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 258.165,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34066,
    "c": 0.16514,
    "h": 287.9
  },
  "luminance": 0.03316
}

Semantic roles & 50–950 ramp

primary
#3A1986
secondary
#95BA41
accent
#EB3CB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1986

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

Preview Lab → · Contrast checker → · Palette generator →

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