#3A1EA6#3A1EA6

#3A1EA6 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.198 H 280.8°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#3A1EA6
RGBrgb(58, 30, 166)
HSLhsl(252, 69%, 38%)
HSVhsv(252, 82%, 65%)
CMYKcmyk(65.1%, 81.9%, 0%, 34.9%)
CIE-LABlab(25.50, 49.75, -67.34)
CIE-LCHlch(25.50, 83.73, 306.46°)
OKLaboklab(38.03% 0.0372 -0.1943)
OKLCHoklch(38.03% 0.198 280.8)
XYZxyz(9.0900, 4.5806, 36.4741)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1EA6 #8AA61E
analogous
#1E46A6 #3A1EA6 #7E1EA6
triadic
#3A1EA6 #A63A1E #1EA63A
tetradic
#3A1EA6 #A61E46 #8AA61E #1EA67E
square
#3A1EA6 #A61E46 #8AA61E #1EA67E
split-complementary
#3A1EA6 #A67E1E #46A61E
monochromatic
#160B3E #281572 #3A1EA6 #4D29D8 #785DE2

Accessibility & contrast

On white

10.96
#3A1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1EA6
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1EA6#FFFFFF#000000##FFFFFF
##3A1EA61.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a1ea6;
/* rgb */ color: rgb(58, 30, 166);
/* oklch */ color: oklch(38.0% 0.198 280.8);
Tailwind
colors: {
  custom: {
    50: '#805fc2',
    500: '#3a1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #3a1ea6;
$custom-light: #805fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1ea6",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 252.353,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38028,
    "c": 0.19788,
    "h": 280.8
  },
  "luminance": 0.04581
}

Semantic roles & 50–950 ramp

primary
#3A1EA6
secondary
#B0C65A
accent
#EC3CC8
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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