#3C1780#3C1780

#3C1780 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.160 H 291.0°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#3C1780
RGBrgb(60, 23, 128)
HSLhsl(261, 70%, 30%)
HSVhsv(261, 82%, 50%)
CMYKcmyk(53.1%, 82%, 0%, 49.8%)
CIE-LABlab(20.56, 42.20, -51.96)
CIE-LCHlch(20.56, 66.94, 309.08°)
OKLaboklab(33.45% 0.0575 -0.1493)
OKLCHoklch(33.45% 0.16 291)
XYZxyz(6.0650, 3.1317, 20.7028)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1780 #5B8017
analogous
#172780 #3C1780 #711780
triadic
#3C1780 #803C17 #17803C
tetradic
#3C1780 #801727 #5B8017 #178071
square
#3C1780 #801727 #5B8017 #178071
split-complementary
#3C1780 #807117 #278017
monochromatic
#0C051A #240E4C #3C1780 #5420B4 #7036DB

Accessibility & contrast

On white

12.91
#3C1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3C1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1780
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1780#FFFFFF#000000##FFFFFF
##3C17801.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#24364C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3c1780;
/* rgb */ color: rgb(60, 23, 128);
/* oklch */ color: oklch(33.4% 0.160 291.0);
Tailwind
colors: {
  custom: {
    50: '#7a59a6',
    500: '#3c1780',
    950: '#000000',
  },
}
SCSS
$custom: #3c1780;
$custom-light: #7a59a6;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1780",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 261.143,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33446,
    "c": 0.16001,
    "h": 291
  },
  "luminance": 0.03132
}

Semantic roles & 50–950 ramp

primary
#3C1780
secondary
#8BB43E
accent
#EC3BAE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C1780

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

Preview Lab → · Contrast checker → · Palette generator →

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