#3F1156#3F1156

#3F1156 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.2% C 0.120 H 311.6°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#3F1156
RGBrgb(63, 17, 86)
HSLhsl(280, 67%, 20%)
HSVhsv(280, 80%, 34%)
CMYKcmyk(26.7%, 80.2%, 0%, 66.3%)
CIE-LABlab(16.15, 34.30, -31.71)
CIE-LCHlch(16.15, 46.71, 317.25°)
OKLaboklab(29.25% 0.0796 -0.0897)
OKLCHoklch(29.25% 0.12 311.6)
XYZxyz(3.9297, 2.1296, 9.0063)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1156 #285611
analogous
#1C1156 #3F1156 #56114A
triadic
#3F1156 #563F11 #11563F
tetradic
#3F1156 #561C11 #285611 #114A56
square
#3F1156 #561C11 #285611 #114A56
split-complementary
#3F1156 #4A5611 #11561C
monochromatic
#13051A #1A0723 #3F1156 #641B89 #8A25BC

Accessibility & contrast

On white

14.73
#3F1156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1156
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1156#FFFFFF#000000##FFFFFF
##3F11561.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#062955
Tritanopia (blue-blind)
#3C2132
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3f1156;
/* rgb */ color: rgb(63, 17, 86);
/* oklch */ color: oklch(29.2% 0.120 311.6);
Tailwind
colors: {
  custom: {
    50: '#775486',
    500: '#3f1156',
    950: '#000000',
  },
}
SCSS
$custom: #3f1156;
$custom-light: #775486;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1156",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 280,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29249,
    "c": 0.11994,
    "h": 311.6
  },
  "luminance": 0.0213
}

Semantic roles & 50–950 ramp

primary
#3F1156
secondary
#528F34
accent
#EA3E77
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F1156

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

Preview Lab → · Contrast checker → · Palette generator →

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