#3A1685#3A1685

#3A1685 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.167 H 288.6°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#3A1685
RGBrgb(58, 22, 133)
HSLhsl(259, 72%, 30%)
HSVhsv(259, 83%, 52%)
CMYKcmyk(56.4%, 83.5%, 0%, 47.8%)
CIE-LABlab(20.70, 43.78, -54.91)
CIE-LCHlch(20.70, 70.23, 308.57°)
OKLaboklab(33.64% 0.0531 -0.158)
OKLCHoklch(33.64% 0.167 288.6)
XYZxyz(6.2642, 3.1665, 22.4669)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1685 #618516
analogous
#162A85 #3A1685 #711685
triadic
#3A1685 #853A16 #16853A
tetradic
#3A1685 #85162A #618516 #168571
square
#3A1685 #85162A #618516 #168571
split-complementary
#3A1685 #857116 #2A8516
monochromatic
#0C051C #230D50 #3A1685 #511FBA #6D37DE

Accessibility & contrast

On white

12.86
#3A1685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3A1685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1685
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1685#FFFFFF#000000##FFFFFF
##3A16851.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#1A374E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a1685;
/* rgb */ color: rgb(58, 22, 133);
/* oklch */ color: oklch(33.6% 0.167 288.6);
Tailwind
colors: {
  custom: {
    50: '#7a59aa',
    500: '#3a1685',
    950: '#000000',
  },
}
SCSS
$custom: #3a1685;
$custom-light: #7a59aa;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1685",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 133
  },
  "hsl": {
    "h": 259.459,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33642,
    "c": 0.16669,
    "h": 288.6
  },
  "luminance": 0.03167
}

Semantic roles & 50–950 ramp

primary
#3A1685
secondary
#91B93E
accent
#EE39B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1685

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

Preview Lab → · Contrast checker → · Palette generator →

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