#3A1671#3A1671

#3A1671 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.144 H 294.6°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#3A1671
RGBrgb(58, 22, 113)
HSLhsl(264, 67%, 26%)
HSVhsv(264, 81%, 44%)
CMYKcmyk(48.7%, 80.5%, 0%, 55.7%)
CIE-LABlab(18.65, 38.13, -45.51)
CIE-LCHlch(18.65, 59.38, 309.96°)
OKLaboklab(31.6% 0.0598 -0.1305)
OKLCHoklch(31.6% 0.144 294.6)
XYZxyz(5.0117, 2.6655, 15.8700)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1671 #4D7116
analogous
#162071 #3A1671 #681671
triadic
#3A1671 #713A16 #16713A
tetradic
#3A1671 #711620 #4D7116 #167168
square
#3A1671 #711620 #4D7116 #167168
split-complementary
#3A1671 #716816 #207116
monochromatic
#0D051A #200C3E #3A1671 #5420A4 #6F2CD6

Accessibility & contrast

On white

13.70
#3A1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3A1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1671
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1671#FFFFFF#000000##FFFFFF
##3A16711.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#2A2F43
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a1671;
/* rgb */ color: rgb(58, 22, 113);
/* oklch */ color: oklch(31.6% 0.144 294.6);
Tailwind
colors: {
  custom: {
    50: '#77589b',
    500: '#3a1671',
    950: '#000000',
  },
}
SCSS
$custom: #3a1671;
$custom-light: #77589b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1671",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 263.736,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.316,
    "c": 0.14356,
    "h": 294.6
  },
  "luminance": 0.02666
}

Semantic roles & 50–950 ramp

primary
#3A1671
secondary
#7DA73C
accent
#EA3EA6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1671

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

Preview Lab → · Contrast checker → · Palette generator →

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