#3A1971#3A1971

#3A1971 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.140 H 294.0°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#3A1971
RGBrgb(58, 25, 113)
HSLhsl(263, 64%, 27%)
HSVhsv(263, 78%, 44%)
CMYKcmyk(48.7%, 77.9%, 0%, 55.7%)
CIE-LABlab(19.17, 36.65, -44.66)
CIE-LCHlch(19.17, 57.78, 309.38°)
OKLaboklab(31.96% 0.0571 -0.128)
OKLCHoklch(31.96% 0.14 294)
XYZxyz(5.0724, 2.7869, 15.8903)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1971 #507119
analogous
#192471 #3A1971 #661971
triadic
#3A1971 #713A19 #19713A
tetradic
#3A1971 #711924 #507119 #197166
square
#3A1971 #711924 #507119 #197166
split-complementary
#3A1971 #716619 #247119
monochromatic
#0D0619 #200E3F #3A1971 #5424A3 #6E33D2

Accessibility & contrast

On white

13.48
#3A1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1971
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1971#FFFFFF#000000##FFFFFF
##3A19711.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#2A3044
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1971;
/* rgb */ color: rgb(58, 25, 113);
/* oklch */ color: oklch(32.0% 0.140 294.0);
Tailwind
colors: {
  custom: {
    50: '#76599b',
    500: '#3a1971',
    950: '#000000',
  },
}
SCSS
$custom: #3a1971;
$custom-light: #76599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1971",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 262.5,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31964,
    "c": 0.1402,
    "h": 294
  },
  "luminance": 0.02787
}

Semantic roles & 50–950 ramp

primary
#3A1971
secondary
#80A640
accent
#E741A9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1971

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

Preview Lab → · Contrast checker → · Palette generator →

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