#3A1676#3A1676

#3A1676 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.149 H 293.0°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#3A1676
RGBrgb(58, 22, 118)
HSLhsl(263, 69%, 27%)
HSVhsv(263, 81%, 46%)
CMYKcmyk(50.8%, 81.4%, 0%, 53.7%)
CIE-LABlab(19.15, 39.54, -47.92)
CIE-LCHlch(19.15, 62.13, 309.53°)
OKLaboklab(32.1% 0.0583 -0.1376)
OKLCHoklch(32.1% 0.149 293)
XYZxyz(5.3009, 2.7812, 17.3935)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1676 #527616
analogous
#162276 #3A1676 #6A1676
triadic
#3A1676 #763A16 #16763A
tetradic
#3A1676 #761622 #527616 #16766A
square
#3A1676 #761622 #527616 #16766A
split-complementary
#3A1676 #766A16 #227616
monochromatic
#0D051A #210C42 #3A1676 #5320AA #6E2ED8

Accessibility & contrast

On white

13.49
#3A1676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1676
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1676#FFFFFF#000000##FFFFFF
##3A16761.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#273146
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a1676;
/* rgb */ color: rgb(58, 22, 118);
/* oklch */ color: oklch(32.1% 0.149 293.0);
Tailwind
colors: {
  custom: {
    50: '#77589e',
    500: '#3a1676',
    950: '#000000',
  },
}
SCSS
$custom: #3a1676;
$custom-light: #77589e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1676",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 262.5,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32096,
    "c": 0.1494,
    "h": 293
  },
  "luminance": 0.02781
}

Semantic roles & 50–950 ramp

primary
#3A1676
secondary
#82AC3C
accent
#EB3CAA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1676

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

Preview Lab → · Contrast checker → · Palette generator →

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