#3A1C8B#3A1C8B

#3A1C8B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.168 H 286.2°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#3A1C8B
RGBrgb(58, 28, 139)
HSLhsl(256, 66%, 33%)
HSVhsv(256, 80%, 55%)
CMYKcmyk(58.3%, 79.9%, 0%, 45.5%)
CIE-LABlab(22.28, 42.76, -56.07)
CIE-LCHlch(22.28, 70.51, 307.33°)
OKLaboklab(34.93% 0.047 -0.1615)
OKLCHoklch(34.93% 0.168 286.2)
XYZxyz(6.8190, 3.5937, 24.7554)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1C8B #6D8B1C
analogous
#1C368B #3A1C8B #711C8B
triadic
#3A1C8B #8B3A1C #1C8B3A
tetradic
#3A1C8B #8B1C36 #6D8B1C #1C8B71
square
#3A1C8B #8B1C36 #6D8B1C #1C8B71
split-complementary
#3A1C8B #8B711C #368B1C
monochromatic
#0F0725 #251258 #3A1C8B #4F26BE #6F47DA

Accessibility & contrast

On white

12.22
#3A1C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3A1C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1C8B
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1C8B#FFFFFF#000000##FFFFFF
##3A1C8B1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#123C53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a1c8b;
/* rgb */ color: rgb(58, 28, 139);
/* oklch */ color: oklch(34.9% 0.168 286.2);
Tailwind
colors: {
  custom: {
    50: '#7b5dae',
    500: '#3a1c8b',
    950: '#000000',
  },
}
SCSS
$custom: #3a1c8b;
$custom-light: #7b5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1c8b",
  "rgb": {
    "r": 58,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 256.216,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34928,
    "c": 0.16817,
    "h": 286.2
  },
  "luminance": 0.03594
}

Semantic roles & 50–950 ramp

primary
#3A1C8B
secondary
#9CBC47
accent
#E93EBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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