#3F1148#3F1148

#3F1148 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.2% C 0.105 H 320.6°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#3F1148
RGBrgb(63, 17, 72)
HSLhsl(290, 62%, 17%)
HSVhsv(290, 76%, 28%)
CMYKcmyk(12.5%, 76.4%, 0%, 71.8%)
CIE-LABlab(15.09, 31.05, -23.83)
CIE-LCHlch(15.09, 39.14, 322.49°)
OKLaboklab(28.16% 0.0812 -0.0666)
OKLCHoklch(28.16% 0.105 320.6)
XYZxyz(3.4199, 1.9257, 6.3212)
Luminance0.0193 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1148 #1A4811
analogous
#241148 #3F1148 #481135
triadic
#3F1148 #483F11 #11483F
tetradic
#3F1148 #482411 #1A4811 #113548
square
#3F1148 #482411 #1A4811 #113548
split-complementary
#3F1148 #354811 #114824
monochromatic
#160619 #160619 #3F1148 #6A1D7A #9628AB

Accessibility & contrast

On white

15.16
#3F1148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#3F1148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1148
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1148#FFFFFF#000000##FFFFFF
##3F11481.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01234A
Deuteranopia (green-blind)
#172847
Tritanopia (blue-blind)
#3F1B2B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3f1148;
/* rgb */ color: rgb(63, 17, 72);
/* oklch */ color: oklch(28.2% 0.105 320.6);
Tailwind
colors: {
  custom: {
    50: '#76547b',
    500: '#3f1148',
    950: '#000000',
  },
}
SCSS
$custom: #3f1148;
$custom-light: #76547b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1148",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 290.182,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.28156,
    "c": 0.10507,
    "h": 320.6
  },
  "luminance": 0.01926
}

Semantic roles & 50–950 ramp

primary
#3F1148
secondary
#408233
accent
#E5435D
background
#F7F4F7
surface
#EDE8EE
border
#C8C4C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #3F1148

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

Preview Lab → · Contrast checker → · Palette generator →

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