#3C176A#3C176A

#3C176A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.134 H 298.5°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#3C176A
RGBrgb(60, 23, 106)
HSLhsl(267, 64%, 25%)
HSVhsv(267, 78%, 42%)
CMYKcmyk(43.4%, 78.3%, 0%, 58.4%)
CIE-LABlab(18.43, 36.05, -41.31)
CIE-LCHlch(18.43, 54.83, 311.11°)
OKLaboklab(31.3% 0.0641 -0.1181)
OKLCHoklch(31.3% 0.134 298.5)
XYZxyz(4.7707, 2.6140, 13.8861)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C176A #456A17
analogous
#171B6A #3C176A #65176A
triadic
#3C176A #6A3C17 #176A3C
tetradic
#3C176A #6A171B #456A17 #176A65
square
#3C176A #6A171B #456A17 #176A65
split-complementary
#3C176A #6A6517 #1B6A17
monochromatic
#0E0519 #200C38 #3C176A #58229C #752DCF

Accessibility & contrast

On white

13.79
#3C176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3C176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C176A
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C176A#FFFFFF#000000##FFFFFF
##3C176A1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#312C3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3c176a;
/* rgb */ color: rgb(60, 23, 106);
/* oklch */ color: oklch(31.3% 0.134 298.5);
Tailwind
colors: {
  custom: {
    50: '#775895',
    500: '#3c176a',
    950: '#000000',
  },
}
SCSS
$custom: #3c176a;
$custom-light: #775895;
$custom-dark: #000000;
JSON
{
  "hex": "#3c176a",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 266.747,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31298,
    "c": 0.13441,
    "h": 298.5
  },
  "luminance": 0.02614
}

Semantic roles & 50–950 ramp

primary
#3C176A
secondary
#74A03D
accent
#E7409D
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3C176A

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

Preview Lab → · Contrast checker → · Palette generator →

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