#3C176C#3C176C

#3C176C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.137 H 297.7°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#3C176C
RGBrgb(60, 23, 108)
HSLhsl(266, 65%, 26%)
HSVhsv(266, 79%, 42%)
CMYKcmyk(44.4%, 78.7%, 0%, 57.6%)
CIE-LABlab(18.61, 36.60, -42.32)
CIE-LCHlch(18.61, 55.95, 310.86°)
OKLaboklab(31.48% 0.0636 -0.1211)
OKLCHoklch(31.48% 0.137 297.7)
XYZxyz(4.8759, 2.6561, 14.4402)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C176C #476C17
analogous
#171C6C #3C176C #66176C
triadic
#3C176C #6C3C17 #176C3C
tetradic
#3C176C #6C171C #476C17 #176C66
square
#3C176C #6C171C #476C17 #176C66
split-complementary
#3C176C #6C6617 #1C6C17
monochromatic
#0E0519 #200C3A #3C176C #58229E #742CD1

Accessibility & contrast

On white

13.71
#3C176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3C176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C176C
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C176C#FFFFFF#000000##FFFFFF
##3C176C1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#302D40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3c176c;
/* rgb */ color: rgb(60, 23, 108);
/* oklch */ color: oklch(31.5% 0.137 297.7);
Tailwind
colors: {
  custom: {
    50: '#775897',
    500: '#3c176c',
    950: '#000000',
  },
}
SCSS
$custom: #3c176c;
$custom-light: #775897;
$custom-dark: #000000;
JSON
{
  "hex": "#3c176c",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 266.118,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31484,
    "c": 0.13676,
    "h": 297.7
  },
  "luminance": 0.02656
}

Semantic roles & 50–950 ramp

primary
#3C176C
secondary
#76A23D
accent
#E8409F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3C176C

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

Preview Lab → · Contrast checker → · Palette generator →

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