#3A1CA6#3A1CA6

#3A1CA6 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.199 H 281.0°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#3A1CA6
RGBrgb(58, 28, 166)
HSLhsl(253, 71%, 38%)
HSVhsv(253, 83%, 65%)
CMYKcmyk(65.1%, 83.1%, 0%, 34.9%)
CIE-LABlab(25.21, 50.63, -67.83)
CIE-LCHlch(25.21, 84.64, 306.74°)
OKLaboklab(37.82% 0.0382 -0.1958)
OKLCHoklch(37.82% 0.199 281)
XYZxyz(9.0409, 4.4825, 36.4578)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1CA6 #88A61C
analogous
#1C43A6 #3A1CA6 #7F1CA6
triadic
#3A1CA6 #A63A1C #1CA63A
tetradic
#3A1CA6 #A61C43 #88A61C #1CA67F
square
#3A1CA6 #A61C43 #88A61C #1CA67F
split-complementary
#3A1CA6 #A67F1C #43A61C
monochromatic
#150A3D #281372 #3A1CA6 #4C25DA #7759E3

Accessibility & contrast

On white

11.07
#3A1CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3A1CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1CA6
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1CA6#FFFFFF#000000##FFFFFF
##3A1CA61.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1ca6;
/* rgb */ color: rgb(58, 28, 166);
/* oklch */ color: oklch(37.8% 0.199 281.0);
Tailwind
colors: {
  custom: {
    50: '#805ec2',
    500: '#3a1ca6',
    950: '#000000',
  },
}
SCSS
$custom: #3a1ca6;
$custom-light: #805ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1ca6",
  "rgb": {
    "r": 58,
    "g": 28,
    "b": 166
  },
  "hsl": {
    "h": 253.043,
    "s": 71.134,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37823,
    "c": 0.19945,
    "h": 281
  },
  "luminance": 0.04483
}

Semantic roles & 50–950 ramp

primary
#3A1CA6
secondary
#AEC757
accent
#EE3AC7
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A1CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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