#3A1CA1#3A1CA1

#3A1CA1 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.194 H 281.9°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#3A1CA1
RGBrgb(58, 28, 161)
HSLhsl(254, 70%, 37%)
HSVhsv(254, 83%, 63%)
CMYKcmyk(64%, 82.6%, 0%, 36.9%)
CIE-LABlab(24.65, 49.19, -65.72)
CIE-LCHlch(24.65, 82.09, 306.81°)
OKLaboklab(37.27% 0.0399 -0.1896)
OKLCHoklch(37.27% 0.194 281.9)
XYZxyz(8.5912, 4.3026, 34.0891)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1CA1 #83A11C
analogous
#1C41A1 #3A1CA1 #7D1CA1
triadic
#3A1CA1 #A13A1C #1CA13A
tetradic
#3A1CA1 #A11C41 #83A11C #1CA17D
square
#3A1CA1 #A11C41 #83A11C #1CA17D
split-complementary
#3A1CA1 #A17D1C #41A11C
monochromatic
#140A39 #27136D #3A1CA1 #4D25D5 #7556E2

Accessibility & contrast

On white

11.29
#3A1CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3A1CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1CA1
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1CA1#FFFFFF#000000##FFFFFF
##3A1CA11.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004560
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a1ca1;
/* rgb */ color: rgb(58, 28, 161);
/* oklch */ color: oklch(37.3% 0.194 281.9);
Tailwind
colors: {
  custom: {
    50: '#7f5ebe',
    500: '#3a1ca1',
    950: '#000000',
  },
}
SCSS
$custom: #3a1ca1;
$custom-light: #7f5ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1ca1",
  "rgb": {
    "r": 58,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 253.534,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37273,
    "c": 0.19376,
    "h": 281.9
  },
  "luminance": 0.04303
}

Semantic roles & 50–950 ramp

primary
#3A1CA1
secondary
#ABC554
accent
#ED3BC5
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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