#3C1C87#3C1C87

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

Color values

HEX#3C1C87
RGBrgb(60, 28, 135)
HSLhsl(258, 66%, 32%)
HSVhsv(258, 79%, 53%)
CMYKcmyk(55.6%, 79.3%, 0%, 47.1%)
CIE-LABlab(22.09, 41.86, -53.87)
CIE-LCHlch(22.09, 68.22, 307.85°)
OKLaboklab(34.72% 0.0515 -0.155)
OKLCHoklch(34.72% 0.163 288.4)
XYZxyz(6.6506, 3.5401, 23.2498)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1C87 #67871C
analogous
#1C3287 #3C1C87 #721C87
triadic
#3C1C87 #873C1C #1C873C
tetradic
#3C1C87 #871C32 #67871C #1C8772
square
#3C1C87 #871C32 #67871C #1C8772
split-complementary
#3C1C87 #87721C #32871C
monochromatic
#0F0722 #251154 #3C1C87 #5327BA #7145D8

Accessibility & contrast

On white

12.30
#3C1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3C1C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1C87
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1C87#FFFFFF#000000##FFFFFF
##3C1C871.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#1D3B51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3c1c87;
/* rgb */ color: rgb(60, 28, 135);
/* oklch */ color: oklch(34.7% 0.163 288.4);
Tailwind
colors: {
  custom: {
    50: '#7b5cab',
    500: '#3c1c87',
    950: '#000000',
  },
}
SCSS
$custom: #3c1c87;
$custom-light: #7b5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1c87",
  "rgb": {
    "r": 60,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 257.944,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34723,
    "c": 0.16329,
    "h": 288.4
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#3C1C87
secondary
#97BA45
accent
#E93FB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3C1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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