#3C1E87#3C1E87

#3C1E87 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.161 H 288.0°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#3C1E87
RGBrgb(60, 30, 135)
HSLhsl(257, 64%, 32%)
HSVhsv(257, 78%, 53%)
CMYKcmyk(55.6%, 77.8%, 0%, 47.1%)
CIE-LABlab(22.44, 40.86, -53.30)
CIE-LCHlch(22.44, 67.16, 307.48°)
OKLaboklab(34.97% 0.0499 -0.1533)
OKLCHoklch(34.97% 0.161 288)
XYZxyz(6.6996, 3.6381, 23.2662)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1E87 #69871E
analogous
#1E3587 #3C1E87 #711E87
triadic
#3C1E87 #873C1E #1E873C
tetradic
#3C1E87 #871E35 #69871E #1E8771
square
#3C1E87 #871E35 #69871E #1E8771
split-complementary
#3C1E87 #87711E #35871E
monochromatic
#0F0823 #261355 #3C1E87 #5229B9 #7149D7

Accessibility & contrast

On white

12.16
#3C1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3C1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1E87
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1E87#FFFFFF#000000##FFFFFF
##3C1E871.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#1D3B51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3c1e87;
/* rgb */ color: rgb(60, 30, 135);
/* oklch */ color: oklch(35.0% 0.161 288.0);
Tailwind
colors: {
  custom: {
    50: '#7b5eab',
    500: '#3c1e87',
    950: '#000000',
  },
}
SCSS
$custom: #3c1e87;
$custom-light: #7b5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1e87",
  "rgb": {
    "r": 60,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 257.143,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34967,
    "c": 0.16123,
    "h": 288
  },
  "luminance": 0.03638
}

Semantic roles & 50–950 ramp

primary
#3C1E87
secondary
#99B948
accent
#E741B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3C1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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