#3A1CB4#3A1CB4

#3A1CB4 is a dark, highly saturated violet. Relative luminance 0.050; OKLCH L 39.4% C 0.215 H 279.0°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#3A1CB4
RGBrgb(58, 28, 180)
HSLhsl(252, 73%, 41%)
HSVhsv(252, 84%, 71%)
CMYKcmyk(67.8%, 84.4%, 0%, 29.4%)
CIE-LABlab(26.80, 54.62, -73.61)
CIE-LCHlch(26.80, 91.66, 306.58°)
OKLaboklab(39.39% 0.0335 -0.2125)
OKLCHoklch(39.39% 0.215 279)
XYZxyz(10.3958, 5.0244, 43.5931)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1CB4 #96B41C
analogous
#1C4AB4 #3A1CB4 #861CB4
triadic
#3A1CB4 #B43A1C #1CB43A
tetradic
#3A1CB4 #B41C4A #96B41C #1CB486
square
#3A1CB4 #B41C4A #96B41C #1CB486
split-complementary
#3A1CB4 #B4861C #4AB41C
monochromatic
#180C4A #29147F #3A1CB4 #512FDF #7D64E7

Accessibility & contrast

On white

10.47
#3A1CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#3A1CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1CB4
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1CB4#FFFFFF#000000##FFFFFF
##3A1CB41.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#0039B1
Tritanopia (blue-blind)
#004D6B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3a1cb4;
/* rgb */ color: rgb(58, 28, 180);
/* oklch */ color: oklch(39.4% 0.215 279.0);
Tailwind
colors: {
  custom: {
    50: '#835fcc',
    500: '#3a1cb4',
    950: '#000000',
  },
}
SCSS
$custom: #3a1cb4;
$custom-light: #835fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1cb4",
  "rgb": {
    "r": 58,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 251.842,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39386,
    "c": 0.21515,
    "h": 279
  },
  "luminance": 0.05025
}

Semantic roles & 50–950 ramp

primary
#3A1CB4
secondary
#B6CC60
accent
#F038CB
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3A1CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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