#3A1EAA#3A1EAA

#3A1EAA is a dark, highly saturated violet. Relative luminance 0.047; OKLCH L 38.5% C 0.202 H 280.2°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#3A1EAA
RGBrgb(58, 30, 170)
HSLhsl(252, 70%, 39%)
HSVhsv(252, 82%, 67%)
CMYKcmyk(65.9%, 82.4%, 0%, 33.3%)
CIE-LABlab(25.95, 50.92, -69.02)
CIE-LCHlch(25.95, 85.77, 306.42°)
OKLaboklab(38.47% 0.0359 -0.1992)
OKLCHoklch(38.47% 0.202 280.2)
XYZxyz(9.4626, 4.7296, 38.4367)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1EAA #8EAA1E
analogous
#1E48AA #3A1EAA #801EAA
triadic
#3A1EAA #AA3A1E #1EAA3A
tetradic
#3A1EAA #AA1E48 #8EAA1E #1EAA80
square
#3A1EAA #AA1E48 #8EAA1E #1EAA80
split-complementary
#3A1EAA #AA801E #48AA1E
monochromatic
#170C42 #281576 #3A1EAA #4E2CDA #7A60E3

Accessibility & contrast

On white

10.79
#3A1EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3A1EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1EAA
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1EAA#FFFFFF#000000##FFFFFF
##3A1EAA1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AE
Deuteranopia (green-blind)
#0038A8
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a1eaa;
/* rgb */ color: rgb(58, 30, 170);
/* oklch */ color: oklch(38.5% 0.202 280.2);
Tailwind
colors: {
  custom: {
    50: '#8060c5',
    500: '#3a1eaa',
    950: '#000000',
  },
}
SCSS
$custom: #3a1eaa;
$custom-light: #8060c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1eaa",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 170
  },
  "hsl": {
    "h": 252,
    "s": 70,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38467,
    "c": 0.20246,
    "h": 280.2
  },
  "luminance": 0.0473
}

Semantic roles & 50–950 ramp

primary
#3A1EAA
secondary
#B2C75C
accent
#ED3BC9
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A1EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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