#3A1778#3A1778

#3A1778 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.151 H 292.1°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#3A1778
RGBrgb(58, 23, 120)
HSLhsl(262, 68%, 28%)
HSVhsv(262, 81%, 47%)
CMYKcmyk(51.7%, 80.8%, 0%, 52.9%)
CIE-LABlab(19.51, 39.64, -48.61)
CIE-LCHlch(19.51, 62.73, 309.20°)
OKLaboklab(32.41% 0.0568 -0.1396)
OKLCHoklch(32.41% 0.151 292.1)
XYZxyz(5.4405, 2.8682, 18.0326)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1778 #557817
analogous
#172578 #3A1778 #6A1778
triadic
#3A1778 #783A17 #17783A
tetradic
#3A1778 #781725 #557817 #17786A
square
#3A1778 #781725 #557817 #17786A
split-complementary
#3A1778 #786A17 #257817
monochromatic
#0C051A #210D45 #3A1778 #5321AB #6E32D8

Accessibility & contrast

On white

13.35
#3A1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3A1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1778
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1778#FFFFFF#000000##FFFFFF
##3A17781.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#253247
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1778;
/* rgb */ color: rgb(58, 23, 120);
/* oklch */ color: oklch(32.4% 0.151 292.1);
Tailwind
colors: {
  custom: {
    50: '#7859a0',
    500: '#3a1778',
    950: '#000000',
  },
}
SCSS
$custom: #3a1778;
$custom-light: #7859a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1778",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 261.649,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32409,
    "c": 0.15071,
    "h": 292.1
  },
  "luminance": 0.02868
}

Semantic roles & 50–950 ramp

primary
#3A1778
secondary
#85AD3E
accent
#EB3DAC
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #3A1778

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

Preview Lab → · Contrast checker → · Palette generator →

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