#3C1987#3C1987

#3C1987 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.166 H 288.8°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#3C1987
RGBrgb(60, 25, 135)
HSLhsl(259, 69%, 31%)
HSVhsv(259, 81%, 53%)
CMYKcmyk(55.6%, 81.5%, 0%, 47.1%)
CIE-LABlab(21.60, 43.28, -54.68)
CIE-LCHlch(21.60, 69.73, 308.36°)
OKLaboklab(34.38% 0.0537 -0.1573)
OKLCHoklch(34.38% 0.166 288.8)
XYZxyz(6.5830, 3.4049, 23.2273)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1987 #648719
analogous
#192D87 #3C1987 #731987
triadic
#3C1987 #873C19 #19873C
tetradic
#3C1987 #87192D #648719 #198773
square
#3C1987 #87192D #648719 #198773
split-complementary
#3C1987 #877319 #2D8719
monochromatic
#0E0620 #250F53 #3C1987 #5323BB #713FDB

Accessibility & contrast

On white

12.49
#3C1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3C1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1987
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1987#FFFFFF#000000##FFFFFF
##3C19871.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#1E3950
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3c1987;
/* rgb */ color: rgb(60, 25, 135);
/* oklch */ color: oklch(34.4% 0.166 288.8);
Tailwind
colors: {
  custom: {
    50: '#7b5bab',
    500: '#3c1987',
    950: '#000000',
  },
}
SCSS
$custom: #3c1987;
$custom-light: #7b5bab;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1987",
  "rgb": {
    "r": 60,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 259.091,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34381,
    "c": 0.1662,
    "h": 288.8
  },
  "luminance": 0.03405
}

Semantic roles & 50–950 ramp

primary
#3C1987
secondary
#94BA41
accent
#EC3CB4
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3C1987

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

Preview Lab → · Contrast checker → · Palette generator →

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