#3C1980#3C1980

#3C1980 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.158 H 290.7°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#3C1980
RGBrgb(60, 25, 128)
HSLhsl(260, 67%, 30%)
HSVhsv(260, 80%, 50%)
CMYKcmyk(53.1%, 80.5%, 0%, 49.8%)
CIE-LABlab(20.88, 41.28, -51.44)
CIE-LCHlch(20.88, 65.96, 308.75°)
OKLaboklab(33.67% 0.0559 -0.1478)
OKLCHoklch(33.67% 0.158 290.7)
XYZxyz(6.1063, 3.2142, 20.7165)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1980 #5D8019
analogous
#192A80 #3C1980 #6F1980
triadic
#3C1980 #803C19 #19803C
tetradic
#3C1980 #80192A #5D8019 #19806F
square
#3C1980 #80192A #5D8019 #19806F
split-complementary
#3C1980 #806F19 #2A8019
monochromatic
#0C051A #240F4D #3C1980 #5423B3 #703BD9

Accessibility & contrast

On white

12.78
#3C1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3C1980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1980
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1980#FFFFFF#000000##FFFFFF
##3C19801.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#24364C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3c1980;
/* rgb */ color: rgb(60, 25, 128);
/* oklch */ color: oklch(33.7% 0.158 290.7);
Tailwind
colors: {
  custom: {
    50: '#7a5aa6',
    500: '#3c1980',
    950: '#000000',
  },
}
SCSS
$custom: #3c1980;
$custom-light: #7a5aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1980",
  "rgb": {
    "r": 60,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 260.388,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.33667,
    "c": 0.15806,
    "h": 290.7
  },
  "luminance": 0.03214
}

Semantic roles & 50–950 ramp

primary
#3C1980
secondary
#8DB441
accent
#EA3EB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C1980

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

Preview Lab → · Contrast checker → · Palette generator →

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