#3A1CA0#3A1CA0

#3A1CA0 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.193 H 282.0°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#3A1CA0
RGBrgb(58, 28, 160)
HSLhsl(254, 70%, 37%)
HSVhsv(254, 83%, 63%)
CMYKcmyk(63.8%, 82.5%, 0%, 37.3%)
CIE-LABlab(24.54, 48.90, -65.30)
CIE-LCHlch(24.54, 81.58, 306.83°)
OKLaboklab(37.16% 0.0402 -0.1884)
OKLCHoklch(37.16% 0.193 282)
XYZxyz(8.5034, 4.2675, 33.6265)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1CA0 #82A01C
analogous
#1C40A0 #3A1CA0 #7C1CA0
triadic
#3A1CA0 #A03A1C #1CA03A
tetradic
#3A1CA0 #A01C40 #82A01C #1CA07C
square
#3A1CA0 #A01C40 #82A01C #1CA07C
split-complementary
#3A1CA0 #A07C1C #40A01C
monochromatic
#140A38 #27136C #3A1CA0 #4D25D4 #7555E1

Accessibility & contrast

On white

11.33
#3A1CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3A1CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1CA0
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1CA0#FFFFFF#000000##FFFFFF
##3A1CA01.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00369E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a1ca0;
/* rgb */ color: rgb(58, 28, 160);
/* oklch */ color: oklch(37.2% 0.193 282.0);
Tailwind
colors: {
  custom: {
    50: '#7f5ebd',
    500: '#3a1ca0',
    950: '#000000',
  },
}
SCSS
$custom: #3a1ca0;
$custom-light: #7f5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1ca0",
  "rgb": {
    "r": 58,
    "g": 28,
    "b": 160
  },
  "hsl": {
    "h": 253.636,
    "s": 70.213,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37164,
    "c": 0.19261,
    "h": 282
  },
  "luminance": 0.04268
}

Semantic roles & 50–950 ramp

primary
#3A1CA0
secondary
#ABC453
accent
#ED3BC5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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