#3C174F#3C174F

#3C174F is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.0% C 0.102 H 312.2°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#3C174F
RGBrgb(60, 23, 79)
HSLhsl(280, 55%, 20%)
HSVhsv(280, 71%, 31%)
CMYKcmyk(24.1%, 70.9%, 0%, 69%)
CIE-LABlab(16.20, 28.84, -26.91)
CIE-LCHlch(16.20, 39.45, 316.99°)
OKLaboklab(29.01% 0.0686 -0.0758)
OKLCHoklch(29.01% 0.102 312.2)
XYZxyz(3.5809, 2.1381, 7.6197)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C174F #2A4F17
analogous
#20174F #3C174F #4F1746
triadic
#3C174F #4F3C17 #174F3C
tetradic
#3C174F #4F2017 #2A4F17 #17464F
square
#3C174F #4F2017 #2A4F17 #17464F
split-complementary
#3C174F #464F17 #174F20
monochromatic
#120718 #180920 #3C174F #60257E #8433AE

Accessibility & contrast

On white

14.71
#3C174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3C174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C174F
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C174F#FFFFFF#000000##FFFFFF
##3C174F1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#12294E
Tritanopia (blue-blind)
#3A2230
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3c174f;
/* rgb */ color: rgb(60, 23, 79);
/* oklch */ color: oklch(29.0% 0.102 312.2);
Tailwind
colors: {
  custom: {
    50: '#745781',
    500: '#3c174f',
    950: '#000000',
  },
}
SCSS
$custom: #3c174f;
$custom-light: #745781;
$custom-dark: #000000;
JSON
{
  "hex": "#3c174f",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 279.643,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.29007,
    "c": 0.10223,
    "h": 312.2
  },
  "luminance": 0.02138
}

Semantic roles & 50–950 ramp

primary
#3C174F
secondary
#55863C
accent
#DE4A7C
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3C174F

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

Preview Lab → · Contrast checker → · Palette generator →

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