#3A1EA7#3A1EA7

#3A1EA7 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.199 H 280.7°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#3A1EA7
RGBrgb(58, 30, 167)
HSLhsl(252, 70%, 39%)
HSVhsv(252, 82%, 65%)
CMYKcmyk(65.3%, 82%, 0%, 34.5%)
CIE-LABlab(25.62, 50.04, -67.76)
CIE-LCHlch(25.62, 84.24, 306.45°)
OKLaboklab(38.14% 0.0369 -0.1956)
OKLCHoklch(38.14% 0.199 280.7)
XYZxyz(9.1820, 4.6174, 36.9591)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1EA7 #8BA71E
analogous
#1E46A7 #3A1EA7 #7E1EA7
triadic
#3A1EA7 #A73A1E #1EA73A
tetradic
#3A1EA7 #A71E46 #8BA71E #1EA77E
square
#3A1EA7 #A71E46 #8BA71E #1EA77E
split-complementary
#3A1EA7 #A77E1E #46A71E
monochromatic
#160B3F #281573 #3A1EA7 #4D2AD9 #795DE2

Accessibility & contrast

On white

10.92
#3A1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3A1EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1EA7
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1EA7#FFFFFF#000000##FFFFFF
##3A1EA71.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0038A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a1ea7;
/* rgb */ color: rgb(58, 30, 167);
/* oklch */ color: oklch(38.1% 0.199 280.7);
Tailwind
colors: {
  custom: {
    50: '#805fc2',
    500: '#3a1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #3a1ea7;
$custom-light: #805fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1ea7",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 252.263,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38138,
    "c": 0.19903,
    "h": 280.7
  },
  "luminance": 0.04618
}

Semantic roles & 50–950 ramp

primary
#3A1EA7
secondary
#B0C65B
accent
#EC3BC8
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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