#3A1EA0#3A1EA0

#3A1EA0 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.191 H 281.8°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#3A1EA0
RGBrgb(58, 30, 160)
HSLhsl(253, 68%, 37%)
HSVhsv(253, 81%, 63%)
CMYKcmyk(63.8%, 81.3%, 0%, 37.3%)
CIE-LABlab(24.84, 48.00, -64.79)
CIE-LCHlch(24.84, 80.63, 306.53°)
OKLaboklab(37.38% 0.0392 -0.1869)
OKLCHoklch(37.38% 0.191 281.8)
XYZxyz(8.5524, 4.3655, 33.6428)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1EA0 #84A01E
analogous
#1E43A0 #3A1EA0 #7B1EA0
triadic
#3A1EA0 #A03A1E #1EA03A
tetradic
#3A1EA0 #A01E43 #84A01E #1EA07B
square
#3A1EA0 #A01E43 #84A01E #1EA07B
split-complementary
#3A1EA0 #A07B1E #43A01E
monochromatic
#150B39 #27146C #3A1EA0 #4D28D4 #7659E0

Accessibility & contrast

On white

11.21
#3A1EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3A1EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1EA0
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1EA0#FFFFFF#000000##FFFFFF
##3A1EA01.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1ea0;
/* rgb */ color: rgb(58, 30, 160);
/* oklch */ color: oklch(37.4% 0.191 281.8);
Tailwind
colors: {
  custom: {
    50: '#7e5fbd',
    500: '#3a1ea0',
    950: '#000000',
  },
}
SCSS
$custom: #3a1ea0;
$custom-light: #7e5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1ea0",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 160
  },
  "hsl": {
    "h": 252.923,
    "s": 68.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37377,
    "c": 0.19098,
    "h": 281.8
  },
  "luminance": 0.04366
}

Semantic roles & 50–950 ramp

primary
#3A1EA0
secondary
#ACC456
accent
#EB3DC6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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