#3A1779#3A1779

#3A1779 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.152 H 291.8°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#3A1779
RGBrgb(58, 23, 121)
HSLhsl(261, 68%, 28%)
HSVhsv(261, 81%, 47%)
CMYKcmyk(52.1%, 81%, 0%, 52.5%)
CIE-LABlab(19.61, 39.93, -49.09)
CIE-LCHlch(19.61, 63.27, 309.13°)
OKLaboklab(32.51% 0.0565 -0.141)
OKLCHoklch(32.51% 0.152 291.8)
XYZxyz(5.5015, 2.8926, 18.3539)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1779 #567917
analogous
#172579 #3A1779 #6B1779
triadic
#3A1779 #793A17 #17793A
tetradic
#3A1779 #791725 #567917 #17796B
square
#3A1779 #791725 #567917 #17796B
split-complementary
#3A1779 #796B17 #257917
monochromatic
#0C051A #210D46 #3A1779 #5321AC #6E32D8

Accessibility & contrast

On white

13.30
#3A1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3A1779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1779
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1779#FFFFFF#000000##FFFFFF
##3A17791.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#253348
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1779;
/* rgb */ color: rgb(58, 23, 121);
/* oklch */ color: oklch(32.5% 0.152 291.8);
Tailwind
colors: {
  custom: {
    50: '#7859a1',
    500: '#3a1779',
    950: '#000000',
  },
}
SCSS
$custom: #3a1779;
$custom-light: #7859a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1779",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 261.429,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3251,
    "c": 0.15189,
    "h": 291.8
  },
  "luminance": 0.02893
}

Semantic roles & 50–950 ramp

primary
#3A1779
secondary
#86AE3E
accent
#EB3DAD
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A1779

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

Preview Lab → · Contrast checker → · Palette generator →

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