#3C2178#3C2178

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

Color values

HEX#3C2178
RGBrgb(60, 33, 120)
HSLhsl(259, 57%, 30%)
HSVhsv(259, 73%, 47%)
CMYKcmyk(50%, 72.5%, 0%, 52.9%)
CIE-LABlab(21.59, 34.76, -45.18)
CIE-LCHlch(21.59, 57.01, 307.57°)
OKLaboklab(33.94% 0.0508 -0.1295)
OKLCHoklch(33.94% 0.139 291.4)
XYZxyz(5.7965, 3.4042, 18.1173)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C2178 #5D7821
analogous
#213178 #3C2178 #682178
triadic
#3C2178 #783C21 #21783C
tetradic
#3C2178 #782131 #5D7821 #217868
square
#3C2178 #782131 #5D7821 #217868
split-complementary
#3C2178 #786821 #317821
monochromatic
#0C0718 #241448 #3C2178 #542EA8 #7047CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3C2178#FFFFFF#000000##FFFFFF
##3C21781.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)
#00357B
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#29374A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3c2178;
/* rgb */ color: rgb(60, 33, 120);
/* oklch */ color: oklch(33.9% 0.139 291.4);
Tailwind
colors: {
  custom: {
    50: '#785fa0',
    500: '#3c2178',
    950: '#000000',
  },
}
SCSS
$custom: #3c2178;
$custom-light: #785fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c2178",
  "rgb": {
    "r": 60,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 258.621,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.33937,
    "c": 0.13915,
    "h": 291.4
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#3C2178
secondary
#8DAB4A
accent
#E048B1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #3C2178

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

Preview Lab → · Contrast checker → · Palette generator →

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