#3C178D#3C178D

#3C178D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.175 H 287.6°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#3C178D
RGBrgb(60, 23, 141)
HSLhsl(259, 72%, 32%)
HSVhsv(259, 84%, 55%)
CMYKcmyk(57.4%, 83.7%, 0%, 44.7%)
CIE-LABlab(21.93, 45.85, -57.88)
CIE-LCHlch(21.93, 73.84, 308.38°)
OKLaboklab(34.8% 0.0529 -0.1666)
OKLCHoklch(34.8% 0.175 287.6)
XYZxyz(6.9762, 3.4962, 25.5014)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C178D #688D17
analogous
#172D8D #3C178D #77178D
triadic
#3C178D #8D3C17 #178D3C
tetradic
#3C178D #8D172D #688D17 #178D77
square
#3C178D #8D172D #688D17 #178D77
split-complementary
#3C178D #8D7717 #2D8D17
monochromatic
#0F0624 #260E58 #3C178D #5220C2 #713FE0

Accessibility & contrast

On white

12.36
#3C178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3C178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C178D
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C178D#FFFFFF#000000##FFFFFF
##3C178D1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#173B53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3c178d;
/* rgb */ color: rgb(60, 23, 141);
/* oklch */ color: oklch(34.8% 0.175 287.6);
Tailwind
colors: {
  custom: {
    50: '#7c5aaf',
    500: '#3c178d',
    950: '#000000',
  },
}
SCSS
$custom: #3c178d;
$custom-light: #7c5aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#3c178d",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 258.814,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34801,
    "c": 0.17482,
    "h": 287.6
  },
  "luminance": 0.03497
}

Semantic roles & 50–950 ramp

primary
#3C178D
secondary
#98C040
accent
#EF39B6
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3C178D

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

Preview Lab → · Contrast checker → · Palette generator →

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