#3A1CB3#3A1CB3

#3A1CB3 is a dark, highly saturated violet. Relative luminance 0.050; OKLCH L 39.3% C 0.214 H 279.1°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#3A1CB3
RGBrgb(58, 28, 179)
HSLhsl(252, 73%, 41%)
HSVhsv(252, 84%, 70%)
CMYKcmyk(67.6%, 84.4%, 0%, 29.8%)
CIE-LABlab(26.69, 54.33, -73.20)
CIE-LCHlch(26.69, 91.16, 306.58°)
OKLaboklab(39.27% 0.0338 -0.2113)
OKLCHoklch(39.27% 0.214 279.1)
XYZxyz(10.2943, 4.9838, 43.0586)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1CB3 #95B31C
analogous
#1C49B3 #3A1CB3 #861CB3
triadic
#3A1CB3 #B33A1C #1CB33A
tetradic
#3A1CB3 #B31C49 #95B31C #1CB386
square
#3A1CB3 #B31C49 #95B31C #1CB386
split-complementary
#3A1CB3 #B3861C #49B31C
monochromatic
#180B49 #29147E #3A1CB3 #512EDE #7D63E7

Accessibility & contrast

On white

10.52
#3A1CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3A1CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1CB3
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1CB3#FFFFFF#000000##FFFFFF
##3A1CB31.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0039B0
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3a1cb3;
/* rgb */ color: rgb(58, 28, 179);
/* oklch */ color: oklch(39.3% 0.214 279.1);
Tailwind
colors: {
  custom: {
    50: '#825fcb',
    500: '#3a1cb3',
    950: '#000000',
  },
}
SCSS
$custom: #3a1cb3;
$custom-light: #825fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1cb3",
  "rgb": {
    "r": 58,
    "g": 28,
    "b": 179
  },
  "hsl": {
    "h": 251.921,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39273,
    "c": 0.21404,
    "h": 279.1
  },
  "luminance": 0.04985
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A1CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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