#3F174C#3F174C

#3F174C is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.2% C 0.100 H 316.9°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#3F174C
RGBrgb(63, 23, 76)
HSLhsl(285, 54%, 19%)
HSVhsv(285, 70%, 30%)
CMYKcmyk(17.1%, 69.7%, 0%, 70.2%)
CIE-LABlab(16.46, 28.93, -24.40)
CIE-LCHlch(16.46, 37.85, 319.85°)
OKLaboklab(29.23% 0.0731 -0.0683)
OKLCHoklch(29.23% 0.1 316.9)
XYZxyz(3.6606, 2.1915, 7.0663)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F174C #244C17
analogous
#25174C #3F174C #4C173F
triadic
#3F174C #4C3F17 #174C3F
tetradic
#3F174C #4C2517 #244C17 #173F4C
square
#3F174C #4C2517 #244C17 #173F4C
split-complementary
#3F174C #3F4C17 #174C25
monochromatic
#130717 #18091D #3F174C #66257B #8D33AA

Accessibility & contrast

On white

14.60
#3F174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#3F174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F174C
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F174C#FFFFFF#000000##FFFFFF
##3F174C1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06264E
Deuteranopia (green-blind)
#182A4B
Tritanopia (blue-blind)
#3E202F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3f174c;
/* rgb */ color: rgb(63, 23, 76);
/* oklch */ color: oklch(29.2% 0.100 316.9);
Tailwind
colors: {
  custom: {
    50: '#76577e',
    500: '#3f174c',
    950: '#000000',
  },
}
SCSS
$custom: #3f174c;
$custom-light: #76577e;
$custom-dark: #000000;
JSON
{
  "hex": "#3f174c",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 285.283,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29231,
    "c": 0.10008,
    "h": 316.9
  },
  "luminance": 0.02191
}

Semantic roles & 50–950 ramp

primary
#3F174C
secondary
#4D833C
accent
#DD4B6F
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #3F174C

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

Preview Lab → · Contrast checker → · Palette generator →

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