#3A1EA1#3A1EA1

#3A1EA1 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.192 H 281.7°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#3A1EA1
RGBrgb(58, 30, 161)
HSLhsl(253, 69%, 37%)
HSVhsv(253, 81%, 63%)
CMYKcmyk(64%, 81.4%, 0%, 36.9%)
CIE-LABlab(24.95, 48.29, -65.22)
CIE-LCHlch(24.95, 81.15, 306.52°)
OKLaboklab(37.49% 0.0388 -0.1882)
OKLCHoklch(37.49% 0.192 281.7)
XYZxyz(8.6402, 4.4007, 34.1054)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1EA1 #85A11E
analogous
#1E44A1 #3A1EA1 #7B1EA1
triadic
#3A1EA1 #A13A1E #1EA13A
tetradic
#3A1EA1 #A11E44 #85A11E #1EA17B
square
#3A1EA1 #A11E44 #85A11E #1EA17B
split-complementary
#3A1EA1 #A17B1E #44A11E
monochromatic
#150B3A #27146D #3A1EA1 #4D28D5 #7659E0

Accessibility & contrast

On white

11.17
#3A1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3A1EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1EA1
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1EA1#FFFFFF#000000##FFFFFF
##3A1EA11.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a1ea1;
/* rgb */ color: rgb(58, 30, 161);
/* oklch */ color: oklch(37.5% 0.192 281.7);
Tailwind
colors: {
  custom: {
    50: '#7f5fbe',
    500: '#3a1ea1',
    950: '#000000',
  },
}
SCSS
$custom: #3a1ea1;
$custom-light: #7f5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1ea1",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 252.824,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37485,
    "c": 0.19213,
    "h": 281.7
  },
  "luminance": 0.04401
}

Semantic roles & 50–950 ramp

primary
#3A1EA1
secondary
#ADC457
accent
#EB3CC6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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