#3F174A#3F174A

#3F174A is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.1% C 0.098 H 318.4°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#3F174A
RGBrgb(63, 23, 74)
HSLhsl(287, 53%, 19%)
HSVhsv(287, 69%, 29%)
CMYKcmyk(14.9%, 68.9%, 0%, 71%)
CIE-LABlab(16.33, 28.46, -23.25)
CIE-LCHlch(16.33, 36.75, 320.76°)
OKLaboklab(29.09% 0.0731 -0.065)
OKLCHoklch(29.09% 0.098 318.4)
XYZxyz(3.5922, 2.1641, 6.7057)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F174A #224A17
analogous
#26174A #3F174A #4A173C
triadic
#3F174A #4A3F17 #174A3F
tetradic
#3F174A #4A2617 #224A17 #173C4A
square
#3F174A #4A2617 #224A17 #173C4A
split-complementary
#3F174A #3C4A17 #174A26
monochromatic
#140717 #17081B #3F174A #672679 #8E34A7

Accessibility & contrast

On white

14.66
#3F174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F174A
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F174A#FFFFFF#000000##FFFFFF
##3F174A1.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08264C
Deuteranopia (green-blind)
#192A49
Tritanopia (blue-blind)
#3F202E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3f174a;
/* rgb */ color: rgb(63, 23, 74);
/* oklch */ color: oklch(29.1% 0.098 318.4);
Tailwind
colors: {
  custom: {
    50: '#76577d',
    500: '#3f174a',
    950: '#000000',
  },
}
SCSS
$custom: #3f174a;
$custom-light: #76577d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f174a",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 287.059,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29089,
    "c": 0.0978,
    "h": 318.4
  },
  "luminance": 0.02164
}

Semantic roles & 50–950 ramp

primary
#3F174A
secondary
#4B813C
accent
#DC4C6B
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #3F174A

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

Preview Lab → · Contrast checker → · Palette generator →

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