#3C174E#3C174E

#3C174E is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.9% C 0.101 H 312.8°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#3C174E
RGBrgb(60, 23, 78)
HSLhsl(280, 54%, 20%)
HSVhsv(280, 71%, 31%)
CMYKcmyk(23.1%, 70.5%, 0%, 69.4%)
CIE-LABlab(16.12, 28.59, -26.34)
CIE-LCHlch(16.12, 38.88, 317.35°)
OKLaboklab(28.93% 0.0687 -0.0741)
OKLCHoklch(28.93% 0.101 312.8)
XYZxyz(3.5448, 2.1236, 7.4294)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C174E #294E17
analogous
#21174E #3C174E #4E1744
triadic
#3C174E #4E3C17 #174E3C
tetradic
#3C174E #4E2117 #294E17 #17444E
square
#3C174E #4E2117 #294E17 #17444E
split-complementary
#3C174E #444E17 #174E21
monochromatic
#120718 #18091F #3C174E #60257D #8533AD

Accessibility & contrast

On white

14.74
#3C174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3C174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C174E
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C174E#FFFFFF#000000##FFFFFF
##3C174E1.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012650
Deuteranopia (green-blind)
#13294D
Tritanopia (blue-blind)
#3A2230
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3c174e;
/* rgb */ color: rgb(60, 23, 78);
/* oklch */ color: oklch(28.9% 0.101 312.8);
Tailwind
colors: {
  custom: {
    50: '#745780',
    500: '#3c174e',
    950: '#000000',
  },
}
SCSS
$custom: #3c174e;
$custom-light: #745780;
$custom-dark: #000000;
JSON
{
  "hex": "#3c174e",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 280.364,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28931,
    "c": 0.10104,
    "h": 312.8
  },
  "luminance": 0.02124
}

Semantic roles & 50–950 ramp

primary
#3C174E
secondary
#54853C
accent
#DE4A7A
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3C174E

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

Preview Lab → · Contrast checker → · Palette generator →

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