#3C1978#3C1978

#3C1978 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.149 H 293.1°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#3C1978
RGBrgb(60, 25, 120)
HSLhsl(262, 66%, 28%)
HSVhsv(262, 79%, 47%)
CMYKcmyk(50%, 79.2%, 0%, 52.9%)
CIE-LABlab(20.09, 39.00, -47.65)
CIE-LCHlch(20.09, 61.57, 309.30°)
OKLaboklab(32.87% 0.0584 -0.1367)
OKLCHoklch(32.87% 0.149 293.1)
XYZxyz(5.6003, 3.0118, 18.0519)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1978 #557819
analogous
#192678 #3C1978 #6B1978
triadic
#3C1978 #783C19 #19783C
tetradic
#3C1978 #781926 #557819 #19786B
square
#3C1978 #781926 #557819 #19786B
split-complementary
#3C1978 #786B19 #267819
monochromatic
#0D0519 #230E45 #3C1978 #5524AB #7136D5

Accessibility & contrast

On white

13.11
#3C1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3C1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1978
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1978#FFFFFF#000000##FFFFFF
##3C19781.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#293348
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3c1978;
/* rgb */ color: rgb(60, 25, 120);
/* oklch */ color: oklch(32.9% 0.149 293.1);
Tailwind
colors: {
  custom: {
    50: '#795aa0',
    500: '#3c1978',
    950: '#000000',
  },
}
SCSS
$custom: #3c1978;
$custom-light: #795aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1978",
  "rgb": {
    "r": 60,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 262.105,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32874,
    "c": 0.14866,
    "h": 293.1
  },
  "luminance": 0.03012
}

Semantic roles & 50–950 ramp

primary
#3C1978
secondary
#85AD40
accent
#E83FAA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3C1978

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

Preview Lab → · Contrast checker → · Palette generator →

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