#3A1CAE#3A1CAE

#3A1CAE is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.7% C 0.208 H 279.8°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#3A1CAE
RGBrgb(58, 28, 174)
HSLhsl(252, 72%, 40%)
HSVhsv(252, 84%, 68%)
CMYKcmyk(66.7%, 83.9%, 0%, 31.8%)
CIE-LABlab(26.11, 52.91, -71.16)
CIE-LCHlch(26.11, 88.68, 306.64°)
OKLaboklab(38.71% 0.0355 -0.2054)
OKLCHoklch(38.71% 0.208 279.8)
XYZxyz(9.7977, 4.7852, 40.4435)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1CAE #90AE1C
analogous
#1C47AE #3A1CAE #831CAE
triadic
#3A1CAE #AE3A1C #1CAE3A
tetradic
#3A1CAE #AE1C47 #90AE1C #1CAE83
square
#3A1CAE #AE1C47 #90AE1C #1CAE83
split-complementary
#3A1CAE #AE831C #47AE1C
monochromatic
#170B45 #281479 #3A1CAE #4F2ADD #7B5FE5

Accessibility & contrast

On white

10.73
#3A1CAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3A1CAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1CAE
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1CAE#FFFFFF#000000##FFFFFF
##3A1CAE1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B2
Deuteranopia (green-blind)
#0038AC
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a1cae;
/* rgb */ color: rgb(58, 28, 174);
/* oklch */ color: oklch(38.7% 0.208 279.8);
Tailwind
colors: {
  custom: {
    50: '#815fc8',
    500: '#3a1cae',
    950: '#000000',
  },
}
SCSS
$custom: #3a1cae;
$custom-light: #815fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1cae",
  "rgb": {
    "r": 58,
    "g": 28,
    "b": 174
  },
  "hsl": {
    "h": 252.329,
    "s": 72.277,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38712,
    "c": 0.20846,
    "h": 279.8
  },
  "luminance": 0.04786
}

Semantic roles & 50–950 ramp

primary
#3A1CAE
secondary
#B3CA5C
accent
#EF39CA
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A1CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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