#3A1E91#3A1E91

#3A1E91 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.173 H 284.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#3A1E91
RGBrgb(58, 30, 145)
HSLhsl(255, 66%, 34%)
HSVhsv(255, 79%, 57%)
CMYKcmyk(60%, 79.3%, 0%, 43.1%)
CIE-LABlab(23.24, 43.56, -58.21)
CIE-LCHlch(23.24, 72.71, 306.81°)
OKLaboklab(35.79% 0.0438 -0.1677)
OKLCHoklch(35.79% 0.173 284.6)
XYZxyz(7.3185, 3.8720, 27.1443)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E91 #75911E
analogous
#1E3C91 #3A1E91 #741E91
triadic
#3A1E91 #913A1E #1E913A
tetradic
#3A1E91 #911E3C #75911E #1E9174
square
#3A1E91 #911E3C #75911E #1E9174
split-complementary
#3A1E91 #91741E #3C911E
monochromatic
#11092C #26145E #3A1E91 #4E28C4 #714FDB

Accessibility & contrast

On white

11.83
#3A1E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3A1E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E91
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E91#FFFFFF#000000##FFFFFF
##3A1E911.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#054057
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a1e91;
/* rgb */ color: rgb(58, 30, 145);
/* oklch */ color: oklch(35.8% 0.173 284.6);
Tailwind
colors: {
  custom: {
    50: '#7b5eb2',
    500: '#3a1e91',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e91;
$custom-light: #7b5eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e91",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 145
  },
  "hsl": {
    "h": 254.609,
    "s": 65.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35787,
    "c": 0.17337,
    "h": 284.6
  },
  "luminance": 0.03872
}

Semantic roles & 50–950 ramp

primary
#3A1E91
secondary
#A2BD4D
accent
#E93FBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A1E91

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

Preview Lab → · Contrast checker → · Palette generator →

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