#3C178F#3C178F

#3C178F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.177 H 287.1°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#3C178F
RGBrgb(60, 23, 143)
HSLhsl(259, 72%, 33%)
HSVhsv(259, 84%, 56%)
CMYKcmyk(58%, 83.9%, 0%, 43.9%)
CIE-LABlab(22.15, 46.41, -58.77)
CIE-LCHlch(22.15, 74.89, 308.30°)
OKLaboklab(35.01% 0.0521 -0.1692)
OKLCHoklch(35.01% 0.177 287.1)
XYZxyz(7.1263, 3.5562, 26.2922)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C178F #6A8F17
analogous
#172E8F #3C178F #78178F
triadic
#3C178F #8F3C17 #178F3C
tetradic
#3C178F #8F172E #6A8F17 #178F78
square
#3C178F #8F172E #6A8F17 #178F78
split-complementary
#3C178F #8F7817 #2E8F17
monochromatic
#100626 #260F5A #3C178F #521FC4 #7140E0

Accessibility & contrast

On white

12.27
#3C178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3C178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C178F
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C178F#FFFFFF#000000##FFFFFF
##3C178F1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#143C54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3c178f;
/* rgb */ color: rgb(60, 23, 143);
/* oklch */ color: oklch(35.0% 0.177 287.1);
Tailwind
colors: {
  custom: {
    50: '#7d5ab1',
    500: '#3c178f',
    950: '#000000',
  },
}
SCSS
$custom: #3c178f;
$custom-light: #7d5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#3c178f",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 258.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35014,
    "c": 0.17709,
    "h": 287.1
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#3C178F
secondary
#99C141
accent
#EF39B7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3C178F

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

Preview Lab → · Contrast checker → · Palette generator →

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