#3C1D87#3C1D87

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

Color values

HEX#3C1D87
RGBrgb(60, 29, 135)
HSLhsl(258, 65%, 32%)
HSVhsv(258, 79%, 53%)
CMYKcmyk(55.6%, 78.5%, 0%, 47.1%)
CIE-LABlab(22.26, 41.37, -53.59)
CIE-LCHlch(22.26, 67.70, 307.67°)
OKLaboklab(34.84% 0.0507 -0.1541)
OKLCHoklch(34.84% 0.162 288.2)
XYZxyz(6.6747, 3.5883, 23.2579)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1D87 #68871D
analogous
#1D3387 #3C1D87 #711D87
triadic
#3C1D87 #873C1D #1D873C
tetradic
#3C1D87 #871D33 #68871D #1D8771
square
#3C1D87 #871D33 #68871D #1D8771
split-complementary
#3C1D87 #87711D #33871D
monochromatic
#0F0722 #261255 #3C1D87 #5228B9 #7147D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3C1D87#FFFFFF#000000##FFFFFF
##3C1D871.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)
#00388A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#1D3B51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3c1d87;
/* rgb */ color: rgb(60, 29, 135);
/* oklch */ color: oklch(34.8% 0.162 288.2);
Tailwind
colors: {
  custom: {
    50: '#7b5dab',
    500: '#3c1d87',
    950: '#000000',
  },
}
SCSS
$custom: #3c1d87;
$custom-light: #7b5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1d87",
  "rgb": {
    "r": 60,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 257.547,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34843,
    "c": 0.16227,
    "h": 288.2
  },
  "luminance": 0.03589
}

Semantic roles & 50–950 ramp

primary
#3C1D87
secondary
#98B946
accent
#E840B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3C1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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