#3C1871#3C1871

#3C1871 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.141 H 295.7°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#3C1871
RGBrgb(60, 24, 113)
HSLhsl(264, 65%, 27%)
HSVhsv(264, 79%, 44%)
CMYKcmyk(46.9%, 78.8%, 0%, 55.7%)
CIE-LABlab(19.25, 37.51, -44.52)
CIE-LCHlch(19.25, 58.21, 310.11°)
OKLaboklab(32.08% 0.0613 -0.1275)
OKLCHoklch(32.08% 0.141 295.7)
XYZxyz(5.1700, 2.8061, 15.8888)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1871 #4D7118
analogous
#182071 #3C1871 #691871
triadic
#3C1871 #713C18 #18713C
tetradic
#3C1871 #711820 #4D7118 #187169
square
#3C1871 #711820 #4D7118 #187169
split-complementary
#3C1871 #716918 #207118
monochromatic
#0D0519 #210D3F #3C1871 #5723A3 #7230D3

Accessibility & contrast

On white

13.45
#3C1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3C1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1871
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1871#FFFFFF#000000##FFFFFF
##3C18711.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#2D3043
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3c1871;
/* rgb */ color: rgb(60, 24, 113);
/* oklch */ color: oklch(32.1% 0.141 295.7);
Tailwind
colors: {
  custom: {
    50: '#78599b',
    500: '#3c1871',
    950: '#000000',
  },
}
SCSS
$custom: #3c1871;
$custom-light: #78599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1871",
  "rgb": {
    "r": 60,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 264.27,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32078,
    "c": 0.14149,
    "h": 295.7
  },
  "luminance": 0.02806
}

Semantic roles & 50–950 ramp

primary
#3C1871
secondary
#7CA63E
accent
#E840A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3C1871

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

Preview Lab → · Contrast checker → · Palette generator →

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