#3A2586#3A2586

#3A2586 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.152 H 285.7°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#3A2586
RGBrgb(58, 37, 134)
HSLhsl(253, 57%, 34%)
HSVhsv(253, 72%, 53%)
CMYKcmyk(56.7%, 72.4%, 0%, 47.5%)
CIE-LABlab(23.48, 36.44, -50.96)
CIE-LCHlch(23.48, 62.65, 305.57°)
OKLaboklab(35.63% 0.0411 -0.1466)
OKLCHoklch(35.63% 0.152 285.7)
XYZxyz(6.7083, 3.9435, 22.9573)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2586 #718625
analogous
#254086 #3A2586 #6A2586
triadic
#3A2586 #863A25 #25863A
tetradic
#3A2586 #862540 #718625 #25866A
square
#3A2586 #862540 #718625 #25866A
split-complementary
#3A2586 #866A25 #408625
monochromatic
#100B26 #251856 #3A2586 #4F32B6 #7055D0

Accessibility & contrast

On white

11.74
#3A2586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3A2586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2586
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2586#FFFFFF#000000##FFFFFF
##3A25861.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003584
Tritanopia (blue-blind)
#183F53
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a2586;
/* rgb */ color: rgb(58, 37, 134);
/* oklch */ color: oklch(35.6% 0.152 285.7);
Tailwind
colors: {
  custom: {
    50: '#7961aa',
    500: '#3a2586',
    950: '#000000',
  },
}
SCSS
$custom: #3a2586;
$custom-light: #7961aa;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2586",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 134
  },
  "hsl": {
    "h": 252.99,
    "s": 56.725,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35628,
    "c": 0.15223,
    "h": 285.7
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#3A2586
secondary
#9FB452
accent
#E048BF
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2586

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

Preview Lab → · Contrast checker → · Palette generator →

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