#3C1778#3C1778

#3C1778 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.151 H 293.5°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#3C1778
RGBrgb(60, 23, 120)
HSLhsl(263, 68%, 28%)
HSVhsv(263, 81%, 47%)
CMYKcmyk(50%, 80.8%, 0%, 52.9%)
CIE-LABlab(19.76, 39.95, -48.19)
CIE-LCHlch(19.76, 62.60, 309.66°)
OKLaboklab(32.64% 0.0601 -0.1383)
OKLCHoklch(32.64% 0.151 293.5)
XYZxyz(5.5591, 2.9293, 18.0382)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1778 #537817
analogous
#172278 #3C1778 #6C1778
triadic
#3C1778 #783C17 #17783C
tetradic
#3C1778 #781722 #537817 #17786C
square
#3C1778 #781722 #537817 #17786C
split-complementary
#3C1778 #786C17 #227817
monochromatic
#0D051A #220D45 #3C1778 #5621AB #7132D8

Accessibility & contrast

On white

13.24
#3C1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3C1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1778
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1778#FFFFFF#000000##FFFFFF
##3C17781.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#293247
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3c1778;
/* rgb */ color: rgb(60, 23, 120);
/* oklch */ color: oklch(32.6% 0.151 293.5);
Tailwind
colors: {
  custom: {
    50: '#7959a0',
    500: '#3c1778',
    950: '#000000',
  },
}
SCSS
$custom: #3c1778;
$custom-light: #7959a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1778",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 262.887,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32641,
    "c": 0.15078,
    "h": 293.5
  },
  "luminance": 0.0293
}

Semantic roles & 50–950 ramp

primary
#3C1778
secondary
#83AD3E
accent
#EB3DA8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3C1778

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

Preview Lab → · Contrast checker → · Palette generator →

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