#3F174E#3F174E

#3F174E is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.4% C 0.102 H 315.5°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#3F174E
RGBrgb(63, 23, 78)
HSLhsl(284, 54%, 20%)
HSVhsv(284, 71%, 31%)
CMYKcmyk(19.2%, 70.5%, 0%, 69.4%)
CIE-LABlab(16.60, 29.41, -25.55)
CIE-LCHlch(16.60, 38.96, 319.02°)
OKLaboklab(29.38% 0.0731 -0.0717)
OKLCHoklch(29.38% 0.102 315.5)
XYZxyz(3.7312, 2.2197, 7.4382)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F174E #264E17
analogous
#23174E #3F174E #4E1742
triadic
#3F174E #4E3F17 #174E3F
tetradic
#3F174E #4E2317 #264E17 #17424E
square
#3F174E #4E2317 #264E17 #17424E
split-complementary
#3F174E #424E17 #174E23
monochromatic
#130718 #19091F #3F174E #65257D #8B33AD

Accessibility & contrast

On white

14.54
#3F174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F174E
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F174E#FFFFFF#000000##FFFFFF
##3F174E1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032750
Deuteranopia (green-blind)
#162A4D
Tritanopia (blue-blind)
#3E2130
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3f174e;
/* rgb */ color: rgb(63, 23, 78);
/* oklch */ color: oklch(29.4% 0.102 315.5);
Tailwind
colors: {
  custom: {
    50: '#765780',
    500: '#3f174e',
    950: '#000000',
  },
}
SCSS
$custom: #3f174e;
$custom-light: #765780;
$custom-dark: #000000;
JSON
{
  "hex": "#3f174e",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 283.636,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29376,
    "c": 0.10238,
    "h": 315.5
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#3F174E
secondary
#50853C
accent
#DE4A72
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #3F174E

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

Preview Lab → · Contrast checker → · Palette generator →

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