#3A1679#3A1679

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

Color values

HEX#3A1679
RGBrgb(58, 22, 121)
HSLhsl(262, 69%, 28%)
HSVhsv(262, 82%, 47%)
CMYKcmyk(52.1%, 81.8%, 0%, 52.5%)
CIE-LABlab(19.45, 40.39, -49.35)
CIE-LCHlch(19.45, 63.77, 309.30°)
OKLaboklab(32.4% 0.0573 -0.1417)
OKLCHoklch(32.4% 0.153 292)
XYZxyz(5.4820, 2.8536, 18.3474)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1679 #557916
analogous
#162379 #3A1679 #6B1679
triadic
#3A1679 #793A16 #16793A
tetradic
#3A1679 #791623 #557916 #16796B
square
#3A1679 #791623 #557916 #16796B
split-complementary
#3A1679 #796B16 #237916
monochromatic
#0C051A #210D45 #3A1679 #531FAD #6E30D9

Accessibility & contrast

On white

13.37
#3A1679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1679
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1679#FFFFFF#000000##FFFFFF
##3A16791.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1679;
/* rgb */ color: rgb(58, 22, 121);
/* oklch */ color: oklch(32.4% 0.153 292.0);
Tailwind
colors: {
  custom: {
    50: '#7858a1',
    500: '#3a1679',
    950: '#000000',
  },
}
SCSS
$custom: #3a1679;
$custom-light: #7858a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1679",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 261.818,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32398,
    "c": 0.15288,
    "h": 292
  },
  "luminance": 0.02854
}

Semantic roles & 50–950 ramp

primary
#3A1679
secondary
#85AE3D
accent
#EC3CAC
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A1679

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

Preview Lab → · Contrast checker → · Palette generator →

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