#3C176D#3C176D

#3C176D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.138 H 297.3°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#3C176D
RGBrgb(60, 23, 109)
HSLhsl(266, 65%, 26%)
HSVhsv(266, 79%, 43%)
CMYKcmyk(45%, 78.9%, 0%, 57.3%)
CIE-LABlab(18.70, 36.88, -42.82)
CIE-LCHlch(18.70, 56.51, 310.74°)
OKLaboklab(31.58% 0.0633 -0.1225)
OKLCHoklch(31.58% 0.138 297.3)
XYZxyz(4.9295, 2.6775, 14.7221)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C176D #486D17
analogous
#171D6D #3C176D #67176D
triadic
#3C176D #6D3C17 #176D3C
tetradic
#3C176D #6D171D #486D17 #176D67
square
#3C176D #6D171D #486D17 #176D67
split-complementary
#3C176D #6D6717 #1D6D17
monochromatic
#0E0519 #200C3A #3C176D #5822A0 #742CD2

Accessibility & contrast

On white

13.68
#3C176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3C176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C176D
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C176D#FFFFFF#000000##FFFFFF
##3C176D1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#2F2E41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3c176d;
/* rgb */ color: rgb(60, 23, 109);
/* oklch */ color: oklch(31.6% 0.138 297.3);
Tailwind
colors: {
  custom: {
    50: '#775898',
    500: '#3c176d',
    950: '#000000',
  },
}
SCSS
$custom: #3c176d;
$custom-light: #775898;
$custom-dark: #000000;
JSON
{
  "hex": "#3c176d",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 265.814,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31578,
    "c": 0.13793,
    "h": 297.3
  },
  "luminance": 0.02678
}

Semantic roles & 50–950 ramp

primary
#3C176D
secondary
#77A33D
accent
#E840A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3C176D

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

Preview Lab → · Contrast checker → · Palette generator →

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