#3C177F#3C177F

#3C177F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.159 H 291.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#3C177F
RGBrgb(60, 23, 127)
HSLhsl(261, 69%, 29%)
HSVhsv(261, 82%, 50%)
CMYKcmyk(52.8%, 81.9%, 0%, 50.2%)
CIE-LABlab(20.46, 41.92, -51.50)
CIE-LCHlch(20.46, 66.40, 309.14°)
OKLaboklab(33.34% 0.0578 -0.148)
OKLCHoklch(33.34% 0.159 291.3)
XYZxyz(5.9995, 3.1055, 20.3579)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C177F #5A7F17
analogous
#17267F #3C177F #70177F
triadic
#3C177F #7F3C17 #177F3C
tetradic
#3C177F #7F1726 #5A7F17 #177F70
square
#3C177F #7F1726 #5A7F17 #177F70
split-complementary
#3C177F #7F7017 #267F17
monochromatic
#0C051A #240E4B #3C177F #5420B3 #7036DB

Accessibility & contrast

On white

12.95
#3C177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3C177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C177F
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C177F#FFFFFF#000000##FFFFFF
##3C177F1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#25354B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3c177f;
/* rgb */ color: rgb(60, 23, 127);
/* oklch */ color: oklch(33.3% 0.159 291.3);
Tailwind
colors: {
  custom: {
    50: '#7a59a5',
    500: '#3c177f',
    950: '#000000',
  },
}
SCSS
$custom: #3c177f;
$custom-light: #7a59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3c177f",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 261.346,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33344,
    "c": 0.15886,
    "h": 291.3
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#3C177F
secondary
#8AB43E
accent
#EC3CAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C177F

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

Preview Lab → · Contrast checker → · Palette generator →

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