#3C1879#3C1879

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

Color values

HEX#3C1879
RGBrgb(60, 24, 121)
HSLhsl(262, 67%, 28%)
HSVhsv(262, 80%, 47%)
CMYKcmyk(50.4%, 80.2%, 0%, 52.5%)
CIE-LABlab(20.02, 39.76, -48.40)
CIE-LCHlch(20.02, 62.64, 309.41°)
OKLaboklab(32.85% 0.0589 -0.1389)
OKLCHoklch(32.85% 0.151 293)
XYZxyz(5.6403, 2.9942, 18.3662)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1879 #557918
analogous
#182479 #3C1879 #6C1879
triadic
#3C1879 #793C18 #18793C
tetradic
#3C1879 #791824 #557918 #18796C
square
#3C1879 #791824 #557918 #18796C
split-complementary
#3C1879 #796C18 #247918
monochromatic
#0D051A #230E46 #3C1879 #5522AC #7135D7

Accessibility & contrast

On white

13.13
#3C1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C1879
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1879#FFFFFF#000000##FFFFFF
##3C18791.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3c1879;
/* rgb */ color: rgb(60, 24, 121);
/* oklch */ color: oklch(32.9% 0.151 293.0);
Tailwind
colors: {
  custom: {
    50: '#795aa1',
    500: '#3c1879',
    950: '#000000',
  },
}
SCSS
$custom: #3c1879;
$custom-light: #795aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1879",
  "rgb": {
    "r": 60,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 262.268,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32854,
    "c": 0.15091,
    "h": 293
  },
  "luminance": 0.02994
}

Semantic roles & 50–950 ramp

primary
#3C1879
secondary
#85AE3F
accent
#EA3EAA
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C1879

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

Preview Lab → · Contrast checker → · Palette generator →

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