#3A1D71#3A1D71

#3A1D71 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.135 H 293.2°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#3A1D71
RGBrgb(58, 29, 113)
HSLhsl(261, 59%, 28%)
HSVhsv(261, 74%, 44%)
CMYKcmyk(48.7%, 74.3%, 0%, 55.7%)
CIE-LABlab(19.93, 34.53, -43.43)
CIE-LCHlch(19.93, 55.48, 308.49°)
OKLaboklab(32.5% 0.0532 -0.1244)
OKLCHoklch(32.5% 0.135 293.2)
XYZxyz(5.1641, 2.9704, 15.9208)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D71 #54711D
analogous
#1D2A71 #3A1D71 #641D71
triadic
#3A1D71 #713A1D #1D713A
tetradic
#3A1D71 #711D2A #54711D #1D7164
square
#3A1D71 #711D2A #54711D #1D7164
split-complementary
#3A1D71 #71641D #2A711D
monochromatic
#0C0618 #211140 #3A1D71 #5329A2 #6E3CCD

Accessibility & contrast

On white

13.17
#3A1D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3A1D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1D71
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D71#FFFFFF#000000##FFFFFF
##3A1D711.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#293245
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a1d71;
/* rgb */ color: rgb(58, 29, 113);
/* oklch */ color: oklch(32.5% 0.135 293.2);
Tailwind
colors: {
  custom: {
    50: '#765c9b',
    500: '#3a1d71',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d71;
$custom-light: #765c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d71",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 260.714,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32498,
    "c": 0.13533,
    "h": 293.2
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#3A1D71
secondary
#84A544
accent
#E245AC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1D71

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

Preview Lab → · Contrast checker → · Palette generator →

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