#3A1E85#3A1E85

#3A1E85 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.159 H 287.3°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#3A1E85
RGBrgb(58, 30, 133)
HSLhsl(256, 63%, 32%)
HSVhsv(256, 77%, 52%)
CMYKcmyk(56.4%, 77.4%, 0%, 47.8%)
CIE-LABlab(22.02, 39.97, -52.73)
CIE-LCHlch(22.02, 66.17, 307.16°)
OKLaboklab(34.56% 0.0473 -0.1517)
OKLCHoklch(34.56% 0.159 287.3)
XYZxyz(6.4416, 3.5212, 22.5260)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E85 #69851E
analogous
#1E3585 #3A1E85 #6E1E85
triadic
#3A1E85 #853A1E #1E853A
tetradic
#3A1E85 #851E35 #69851E #1E856E
square
#3A1E85 #851E35 #69851E #1E856E
split-complementary
#3A1E85 #856E1E #35851E
monochromatic
#0E0721 #241353 #3A1E85 #5029B7 #6E48D6

Accessibility & contrast

On white

12.32
#3A1E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3A1E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E85
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E85#FFFFFF#000000##FFFFFF
##3A1E851.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#1A3B50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a1e85;
/* rgb */ color: rgb(58, 30, 133);
/* oklch */ color: oklch(34.6% 0.159 287.3);
Tailwind
colors: {
  custom: {
    50: '#795da9',
    500: '#3a1e85',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e85;
$custom-light: #795da9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e85",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 133
  },
  "hsl": {
    "h": 256.311,
    "s": 63.19,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34563,
    "c": 0.15893,
    "h": 287.3
  },
  "luminance": 0.03522
}

Semantic roles & 50–950 ramp

primary
#3A1E85
secondary
#99B847
accent
#E642B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1E85

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

Preview Lab → · Contrast checker → · Palette generator →

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