#3C178E#3C178E

#3C178E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.176 H 287.4°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#3C178E
RGBrgb(60, 23, 142)
HSLhsl(259, 72%, 32%)
HSVhsv(259, 84%, 56%)
CMYKcmyk(57.7%, 83.8%, 0%, 44.3%)
CIE-LABlab(22.04, 46.13, -58.33)
CIE-LCHlch(22.04, 74.37, 308.34°)
OKLaboklab(34.91% 0.0525 -0.1679)
OKLCHoklch(34.91% 0.176 287.4)
XYZxyz(7.0509, 3.5261, 25.8950)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C178E #698E17
analogous
#172E8E #3C178E #77178E
triadic
#3C178E #8E3C17 #178E3C
tetradic
#3C178E #8E172E #698E17 #178E77
square
#3C178E #8E172E #698E17 #178E77
split-complementary
#3C178E #8E7717 #2E8E17
monochromatic
#0F0625 #260E59 #3C178E #5220C3 #713FE0

Accessibility & contrast

On white

12.32
#3C178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C178E
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C178E#FFFFFF#000000##FFFFFF
##3C178E1.0012.321.7112.32
#FFFFFF12.321.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#153B54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3c178e;
/* rgb */ color: rgb(60, 23, 142);
/* oklch */ color: oklch(34.9% 0.176 287.4);
Tailwind
colors: {
  custom: {
    50: '#7c5ab0',
    500: '#3c178e',
    950: '#000000',
  },
}
SCSS
$custom: #3c178e;
$custom-light: #7c5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c178e",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 258.655,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34907,
    "c": 0.17595,
    "h": 287.4
  },
  "luminance": 0.03526
}

Semantic roles & 50–950 ramp

primary
#3C178E
secondary
#99C040
accent
#EF39B6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3C178E

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

Preview Lab → · Contrast checker → · Palette generator →

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