#3A1E9E#3A1E9E

#3A1E9E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.189 H 282.2°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#3A1E9E
RGBrgb(58, 30, 158)
HSLhsl(253, 68%, 37%)
HSVhsv(253, 81%, 62%)
CMYKcmyk(63.3%, 81%, 0%, 38%)
CIE-LABlab(24.63, 47.41, -63.93)
CIE-LCHlch(24.63, 79.59, 306.56°)
OKLaboklab(37.16% 0.0398 -0.1844)
OKLCHoklch(37.16% 0.189 282.2)
XYZxyz(8.3788, 4.2961, 32.7288)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E9E #829E1E
analogous
#1E429E #3A1E9E #7A1E9E
triadic
#3A1E9E #9E3A1E #1E9E3A
tetradic
#3A1E9E #9E1E42 #829E1E #1E9E7A
square
#3A1E9E #9E1E42 #829E1E #1E9E7A
split-complementary
#3A1E9E #9E7A1E #429E1E
monochromatic
#140A37 #27146B #3A1E9E #4D28D1 #7557DF

Accessibility & contrast

On white

11.29
#3A1E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3A1E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E9E
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E9E#FFFFFF#000000##FFFFFF
##3A1E9E1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA2
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a1e9e;
/* rgb */ color: rgb(58, 30, 158);
/* oklch */ color: oklch(37.2% 0.189 282.2);
Tailwind
colors: {
  custom: {
    50: '#7e5fbc',
    500: '#3a1e9e',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e9e;
$custom-light: #7e5fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e9e",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 253.125,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37162,
    "c": 0.18865,
    "h": 282.2
  },
  "luminance": 0.04297
}

Semantic roles & 50–950 ramp

primary
#3A1E9E
secondary
#ABC355
accent
#EB3DC5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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