#3F173E#3F173E

#3F173E is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.3% C 0.085 H 328.5°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#3F173E
RGBrgb(63, 23, 62)
HSLhsl(302, 47%, 17%)
HSVhsv(302, 63%, 25%)
CMYKcmyk(0%, 63.5%, 1.6%, 75.3%)
CIE-LABlab(15.58, 25.77, -16.09)
CIE-LCHlch(15.58, 30.38, 328.02°)
OKLaboklab(28.3% 0.0721 -0.0442)
OKLCHoklch(28.3% 0.085 328.5)
XYZxyz(3.2258, 2.0176, 4.7760)
Luminance0.0202 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F173E #173F18
analogous
#2C173F #3F173E #3F172A
triadic
#3F173E #3E3F17 #173E3F
tetradic
#3F173E #3F2C17 #173F18 #172A3F
square
#3F173E #3F2C17 #173F18 #172A3F
split-complementary
#3F173E #2A3F17 #173F2C
monochromatic
#160816 #160816 #3F173E #6C276A #993896

Accessibility & contrast

On white

14.96
#3F173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#3F173E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F173E
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F173E#FFFFFF#000000##FFFFFF
##3F173E1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13233F
Deuteranopia (green-blind)
#20293D
Tritanopia (blue-blind)
#411B28
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3f173e;
/* rgb */ color: rgb(63, 23, 62);
/* oklch */ color: oklch(28.3% 0.085 328.5);
Tailwind
colors: {
  custom: {
    50: '#765773',
    500: '#3f173e',
    950: '#000000',
  },
}
SCSS
$custom: #3f173e;
$custom-light: #765773;
$custom-dark: #000000;
JSON
{
  "hex": "#3f173e",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 301.5,
    "s": 46.512,
    "l": 16.863
  },
  "oklch": {
    "l": 0.28302,
    "c": 0.08461,
    "h": 328.5
  },
  "luminance": 0.02017
}

Semantic roles & 50–950 ramp

primary
#3F173E
secondary
#3C763D
accent
#D65552
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #3F173E

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

Preview Lab → · Contrast checker → · Palette generator →

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