#3C177D#3C177D

#3C177D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.157 H 291.9°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#3C177D
RGBrgb(60, 23, 125)
HSLhsl(262, 69%, 29%)
HSVhsv(262, 82%, 49%)
CMYKcmyk(52%, 81.6%, 0%, 51%)
CIE-LABlab(20.26, 41.36, -50.56)
CIE-LCHlch(20.26, 65.32, 309.28°)
OKLaboklab(33.14% 0.0585 -0.1452)
OKLCHoklch(33.14% 0.157 291.9)
XYZxyz(5.8705, 3.0539, 19.6782)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C177D #587D17
analogous
#17257D #3C177D #6F177D
triadic
#3C177D #7D3C17 #177D3C
tetradic
#3C177D #7D1725 #587D17 #177D6F
square
#3C177D #7D1725 #587D17 #177D6F
split-complementary
#3C177D #7D6F17 #257D17
monochromatic
#0C051A #230D49 #3C177D #5521B1 #7135DA

Accessibility & contrast

On white

13.04
#3C177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3C177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C177D
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C177D#FFFFFF#000000##FFFFFF
##3C177D1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#26344A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3c177d;
/* rgb */ color: rgb(60, 23, 125);
/* oklch */ color: oklch(33.1% 0.157 291.9);
Tailwind
colors: {
  custom: {
    50: '#7a59a4',
    500: '#3c177d',
    950: '#000000',
  },
}
SCSS
$custom: #3c177d;
$custom-light: #7a59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3c177d",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 261.765,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33141,
    "c": 0.15656,
    "h": 291.9
  },
  "luminance": 0.03054
}

Semantic roles & 50–950 ramp

primary
#3C177D
secondary
#88B23E
accent
#EC3CAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C177D

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

Preview Lab → · Contrast checker → · Palette generator →

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