#3F174F#3F174F

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

Color values

HEX#3F174F
RGBrgb(63, 23, 79)
HSLhsl(283, 55%, 20%)
HSVhsv(283, 71%, 31%)
CMYKcmyk(20.3%, 70.9%, 0%, 69%)
CIE-LABlab(16.67, 29.65, -26.12)
CIE-LCHlch(16.67, 39.52, 318.63°)
OKLaboklab(29.45% 0.073 -0.0734)
OKLCHoklch(29.45% 0.104 314.9)
XYZxyz(3.7673, 2.2342, 7.6284)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F174F #274F17
analogous
#23174F #3F174F #4F1743
triadic
#3F174F #4F3F17 #174F3F
tetradic
#3F174F #4F2317 #274F17 #17434F
square
#3F174F #4F2317 #274F17 #17434F
split-complementary
#3F174F #434F17 #174F23
monochromatic
#130718 #190920 #3F174F #65257E #8B33AE

Accessibility & contrast

On white

14.51
#3F174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3F174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F174F
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F174F#FFFFFF#000000##FFFFFF
##3F174F1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022751
Deuteranopia (green-blind)
#162A4E
Tritanopia (blue-blind)
#3E2230
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3f174f;
/* rgb */ color: rgb(63, 23, 79);
/* oklch */ color: oklch(29.4% 0.104 314.9);
Tailwind
colors: {
  custom: {
    50: '#765781',
    500: '#3f174f',
    950: '#000000',
  },
}
SCSS
$custom: #3f174f;
$custom-light: #765781;
$custom-dark: #000000;
JSON
{
  "hex": "#3f174f",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 282.857,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.2945,
    "c": 0.10353,
    "h": 314.9
  },
  "luminance": 0.02234
}

Semantic roles & 50–950 ramp

primary
#3F174F
secondary
#51863C
accent
#DE4A74
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #3F174F

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

Preview Lab → · Contrast checker → · Palette generator →

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