#3A1794#3A1794

#3A1794 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.4% C 0.183 H 284.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#3A1794
RGBrgb(58, 23, 148)
HSLhsl(257, 73%, 34%)
HSVhsv(257, 84%, 58%)
CMYKcmyk(60.8%, 84.5%, 0%, 42%)
CIE-LABlab(22.48, 47.60, -61.33)
CIE-LCHlch(22.48, 77.63, 307.81°)
OKLaboklab(35.35% 0.047 -0.1768)
OKLCHoklch(35.35% 0.183 284.9)
XYZxyz(7.3950, 3.6500, 28.3261)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1794 #719417
analogous
#173294 #3A1794 #781794
triadic
#3A1794 #943A17 #17943A
tetradic
#3A1794 #941732 #719417 #179478
square
#3A1794 #941732 #719417 #179478
split-complementary
#3A1794 #947817 #329417
monochromatic
#10072A #250F5F #3A1794 #4F1FC9 #7044E2

Accessibility & contrast

On white

12.14
#3A1794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3A1794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1794
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1794#FFFFFF#000000##FFFFFF
##3A17941.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a1794;
/* rgb */ color: rgb(58, 23, 148);
/* oklch */ color: oklch(35.4% 0.183 284.9);
Tailwind
colors: {
  custom: {
    50: '#7d5bb5',
    500: '#3a1794',
    950: '#000000',
  },
}
SCSS
$custom: #3a1794;
$custom-light: #7d5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1794",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 256.8,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35354,
    "c": 0.18291,
    "h": 284.9
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#3A1794
secondary
#9FC344
accent
#F038BC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1794

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

Preview Lab → · Contrast checker → · Palette generator →

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