#3A1690#3A1690

#3A1690 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.179 H 285.9°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#3A1690
RGBrgb(58, 22, 144)
HSLhsl(258, 73%, 33%)
HSVhsv(258, 85%, 56%)
CMYKcmyk(59.7%, 84.7%, 0%, 43.5%)
CIE-LABlab(21.90, 46.88, -59.82)
CIE-LCHlch(21.90, 76.00, 308.09°)
OKLaboklab(34.82% 0.0491 -0.1723)
OKLCHoklch(34.82% 0.179 285.9)
XYZxyz(7.0643, 3.4865, 26.6809)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1690 #6C9016
analogous
#162F90 #3A1690 #771690
triadic
#3A1690 #903A16 #16903A
tetradic
#3A1690 #90162F #6C9016 #169077
square
#3A1690 #90162F #6C9016 #169077
split-complementary
#3A1690 #907716 #2F9016
monochromatic
#0F0626 #250E5B #3A1690 #4F1EC5 #6F3FE2

Accessibility & contrast

On white

12.37
#3A1690 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3A1690 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1690
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1690#FFFFFF#000000##FFFFFF
##3A16901.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#093C55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a1690;
/* rgb */ color: rgb(58, 22, 144);
/* oklch */ color: oklch(34.8% 0.179 285.9);
Tailwind
colors: {
  custom: {
    50: '#7c5ab2',
    500: '#3a1690',
    950: '#000000',
  },
}
SCSS
$custom: #3a1690;
$custom-light: #7c5ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1690",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 144
  },
  "hsl": {
    "h": 257.705,
    "s": 73.494,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34822,
    "c": 0.17916,
    "h": 285.9
  },
  "luminance": 0.03487
}

Semantic roles & 50–950 ramp

primary
#3A1690
secondary
#9BC240
accent
#F038BA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1690

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

Preview Lab → · Contrast checker → · Palette generator →

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