#3A1C87#3A1C87

#3A1C87 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.163 H 287.2°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#3A1C87
RGBrgb(58, 28, 135)
HSLhsl(257, 66%, 32%)
HSVhsv(257, 79%, 53%)
CMYKcmyk(57%, 79.3%, 0%, 47.1%)
CIE-LABlab(21.87, 41.58, -54.24)
CIE-LCHlch(21.87, 68.34, 307.47°)
OKLaboklab(34.52% 0.0483 -0.1561)
OKLCHoklch(34.52% 0.163 287.2)
XYZxyz(6.5320, 3.4790, 23.2443)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1C87 #69871C
analogous
#1C3487 #3A1C87 #6F1C87
triadic
#3A1C87 #873A1C #1C873A
tetradic
#3A1C87 #871C34 #69871C #1C876F
square
#3A1C87 #871C34 #69871C #1C876F
split-complementary
#3A1C87 #876F1C #34871C
monochromatic
#0E0722 #241154 #3A1C87 #5027BA #6E45D8

Accessibility & contrast

On white

12.38
#3A1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3A1C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1C87
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1C87#FFFFFF#000000##FFFFFF
##3A1C871.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#183B51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a1c87;
/* rgb */ color: rgb(58, 28, 135);
/* oklch */ color: oklch(34.5% 0.163 287.2);
Tailwind
colors: {
  custom: {
    50: '#7a5cab',
    500: '#3a1c87',
    950: '#000000',
  },
}
SCSS
$custom: #3a1c87;
$custom-light: #7a5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1c87",
  "rgb": {
    "r": 58,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 256.822,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34517,
    "c": 0.16341,
    "h": 287.2
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

primary
#3A1C87
secondary
#99BA45
accent
#E93FB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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