#3F1847#3F1847

#3F1847 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.0% C 0.093 H 320.5°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#3F1847
RGBrgb(63, 24, 71)
HSLhsl(290, 49%, 19%)
HSVhsv(290, 66%, 28%)
CMYKcmyk(11.3%, 66.2%, 0%, 72.2%)
CIE-LABlab(16.33, 27.21, -21.17)
CIE-LCHlch(16.33, 34.47, 322.11°)
OKLaboklab(29.03% 0.0715 -0.0589)
OKLCHoklch(29.03% 0.093 320.5)
XYZxyz(3.5137, 2.1651, 6.1928)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1847 #204718
analogous
#271847 #3F1847 #471837
triadic
#3F1847 #473F18 #18473F
tetradic
#3F1847 #472718 #204718 #183747
square
#3F1847 #472718 #204718 #183747
split-complementary
#3F1847 #374718 #184727
monochromatic
#140817 #160919 #3F1847 #682775 #9037A2

Accessibility & contrast

On white

14.65
#3F1847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1847
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1847#FFFFFF#000000##FFFFFF
##3F18471.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2648
Deuteranopia (green-blind)
#1C2A46
Tritanopia (blue-blind)
#3F1F2C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3f1847;
/* rgb */ color: rgb(63, 24, 71);
/* oklch */ color: oklch(29.0% 0.093 320.5);
Tailwind
colors: {
  custom: {
    50: '#76577a',
    500: '#3f1847',
    950: '#000000',
  },
}
SCSS
$custom: #3f1847;
$custom-light: #76577a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1847",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 71
  },
  "hsl": {
    "h": 289.787,
    "s": 49.474,
    "l": 18.627
  },
  "oklch": {
    "l": 0.29029,
    "c": 0.09268,
    "h": 320.5
  },
  "luminance": 0.02165
}

Semantic roles & 50–950 ramp

primary
#3F1847
secondary
#487E3D
accent
#D94F66
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080309
muted
#7B787B

Preview Lab

Preview with #3F1847

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

Preview Lab → · Contrast checker → · Palette generator →

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