#3F1752#3F1752

#3F1752 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.7% C 0.107 H 312.9°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#3F1752
RGBrgb(63, 23, 82)
HSLhsl(281, 56%, 21%)
HSVhsv(281, 72%, 32%)
CMYKcmyk(23.2%, 72%, 0%, 67.8%)
CIE-LABlab(16.89, 30.39, -27.81)
CIE-LCHlch(16.89, 41.20, 317.53°)
OKLaboklab(29.68% 0.0729 -0.0783)
OKLCHoklch(29.68% 0.107 312.9)
XYZxyz(3.8790, 2.2789, 8.2165)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1752 #2A5217
analogous
#211752 #3F1752 #521747
triadic
#3F1752 #523F17 #17523F
tetradic
#3F1752 #522117 #2A5217 #174752
square
#3F1752 #522117 #2A5217 #174752
split-complementary
#3F1752 #475217 #175221
monochromatic
#120718 #1A0A22 #3F1752 #642482 #8832B2

Accessibility & contrast

On white

14.43
#3F1752 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3F1752 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1752
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1752#FFFFFF#000000##FFFFFF
##3F17521.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#132B51
Tritanopia (blue-blind)
#3D2332
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3f1752;
/* rgb */ color: rgb(63, 23, 82);
/* oklch */ color: oklch(29.7% 0.107 312.9);
Tailwind
colors: {
  custom: {
    50: '#765783',
    500: '#3f1752',
    950: '#000000',
  },
}
SCSS
$custom: #3f1752;
$custom-light: #765783;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1752",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 82
  },
  "hsl": {
    "h": 280.678,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29675,
    "c": 0.107,
    "h": 312.9
  },
  "luminance": 0.02279
}

Semantic roles & 50–950 ramp

primary
#3F1752
secondary
#55893C
accent
#DF4879
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #3F1752

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

Preview Lab → · Contrast checker → · Palette generator →

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