#3A1677#3A1677

#3A1677 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.151 H 292.6°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#3A1677
RGBrgb(58, 22, 119)
HSLhsl(262, 69%, 28%)
HSVhsv(262, 82%, 47%)
CMYKcmyk(51.3%, 81.5%, 0%, 53.3%)
CIE-LABlab(19.25, 39.83, -48.40)
CIE-LCHlch(19.25, 62.68, 309.45°)
OKLaboklab(32.2% 0.0579 -0.139)
OKLCHoklch(32.2% 0.151 292.6)
XYZxyz(5.3607, 2.8051, 17.7082)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1677 #537716
analogous
#162377 #3A1677 #6A1677
triadic
#3A1677 #773A16 #16773A
tetradic
#3A1677 #771623 #537716 #16776A
square
#3A1677 #771623 #537716 #16776A
split-complementary
#3A1677 #776A16 #237716
monochromatic
#0D051A #210C43 #3A1677 #5320AB #6E2FD9

Accessibility & contrast

On white

13.45
#3A1677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3A1677 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1677
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1677#FFFFFF#000000##FFFFFF
##3A16771.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#263246
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1677;
/* rgb */ color: rgb(58, 22, 119);
/* oklch */ color: oklch(32.2% 0.151 292.6);
Tailwind
colors: {
  custom: {
    50: '#78589f',
    500: '#3a1677',
    950: '#000000',
  },
}
SCSS
$custom: #3a1677;
$custom-light: #78589f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1677",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 262.268,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32196,
    "c": 0.15056,
    "h": 292.6
  },
  "luminance": 0.02805
}

Semantic roles & 50–950 ramp

primary
#3A1677
secondary
#83AC3C
accent
#EC3CAB
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #3A1677

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

Preview Lab → · Contrast checker → · Palette generator →

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