#3A1790#3A1790

#3A1790 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.178 H 285.8°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#3A1790
RGBrgb(58, 23, 144)
HSLhsl(257, 72%, 33%)
HSVhsv(257, 84%, 56%)
CMYKcmyk(59.7%, 84%, 0%, 43.5%)
CIE-LABlab(22.04, 46.47, -59.58)
CIE-LCHlch(22.04, 75.56, 307.95°)
OKLaboklab(34.92% 0.0485 -0.1717)
OKLCHoklch(34.92% 0.178 285.8)
XYZxyz(7.0838, 3.5255, 26.6874)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1790 #6D9017
analogous
#173190 #3A1790 #761790
triadic
#3A1790 #903A17 #17903A
tetradic
#3A1790 #901731 #6D9017 #179076
square
#3A1790 #901731 #6D9017 #179076
split-complementary
#3A1790 #907617 #319017
monochromatic
#0F0626 #250F5B #3A1790 #4F1FC5 #6F41E1

Accessibility & contrast

On white

12.32
#3A1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3A1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1790
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1790#FFFFFF#000000##FFFFFF
##3A17901.0012.321.7112.32
#FFFFFF12.321.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1790;
/* rgb */ color: rgb(58, 23, 144);
/* oklch */ color: oklch(34.9% 0.178 285.8);
Tailwind
colors: {
  custom: {
    50: '#7c5ab2',
    500: '#3a1790',
    950: '#000000',
  },
}
SCSS
$custom: #3a1790;
$custom-light: #7c5ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1790",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 257.355,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34919,
    "c": 0.17838,
    "h": 285.8
  },
  "luminance": 0.03526
}

Semantic roles & 50–950 ramp

primary
#3A1790
secondary
#9CC142
accent
#EF39BA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1790

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

Preview Lab → · Contrast checker → · Palette generator →

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