#3A1E97#3A1E97

#3A1E97 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.180 H 283.5°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#3A1E97
RGBrgb(58, 30, 151)
HSLhsl(254, 67%, 35%)
HSVhsv(254, 80%, 59%)
CMYKcmyk(61.6%, 80.1%, 0%, 40.8%)
CIE-LABlab(23.88, 45.34, -60.88)
CIE-LCHlch(23.88, 75.91, 306.68°)
OKLaboklab(36.42% 0.042 -0.1755)
OKLCHoklch(36.42% 0.18 283.5)
XYZxyz(7.7934, 4.0619, 29.6455)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E97 #7B971E
analogous
#1E3F97 #3A1E97 #761E97
triadic
#3A1E97 #973A1E #1E973A
tetradic
#3A1E97 #971E3F #7B971E #1E9776
square
#3A1E97 #971E3F #7B971E #1E9776
split-complementary
#3A1E97 #97761E #3F971E
monochromatic
#130A31 #261464 #3A1E97 #4E28CA #7353DD

Accessibility & contrast

On white

11.59
#3A1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3A1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E97
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E97#FFFFFF#000000##FFFFFF
##3A1E971.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a1e97;
/* rgb */ color: rgb(58, 30, 151);
/* oklch */ color: oklch(36.4% 0.180 283.5);
Tailwind
colors: {
  custom: {
    50: '#7d5eb7',
    500: '#3a1e97',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e97;
$custom-light: #7d5eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e97",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 253.884,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36416,
    "c": 0.18047,
    "h": 283.5
  },
  "luminance": 0.04062
}

Semantic roles & 50–950 ramp

primary
#3A1E97
secondary
#A6C051
accent
#EA3EC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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