#3F1040#3F1040

#3F1040 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.098 H 327.0°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#3F1040
RGBrgb(63, 16, 64)
HSLhsl(299, 60%, 16%)
HSVhsv(299, 75%, 25%)
CMYKcmyk(1.6%, 75%, 0%, 74.9%)
CIE-LABlab(14.39, 29.80, -19.37)
CIE-LCHlch(14.39, 35.55, 326.98°)
OKLaboklab(27.48% 0.0825 -0.0536)
OKLCHoklch(27.48% 0.098 327)
XYZxyz(3.1606, 1.7977, 5.0300)
Luminance0.0180 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1040 #114010
analogous
#271040 #3F1040 #401029
triadic
#3F1040 #403F10 #10403F
tetradic
#3F1040 #402710 #114010 #102940
square
#3F1040 #402710 #114010 #102940
split-complementary
#3F1040 #294010 #104027
monochromatic
#180618 #180618 #3F1040 #6F1C71 #9F28A2

Accessibility & contrast

On white

15.45
#3F1040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#3F1040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1040
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1040#FFFFFF#000000##FFFFFF
##3F10401.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082141
Deuteranopia (green-blind)
#1B273F
Tritanopia (blue-blind)
#411726
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3f1040;
/* rgb */ color: rgb(63, 16, 64);
/* oklch */ color: oklch(27.5% 0.098 327.0);
Tailwind
colors: {
  custom: {
    50: '#765375',
    500: '#3f1040',
    950: '#000000',
  },
}
SCSS
$custom: #3f1040;
$custom-light: #765375;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1040",
  "rgb": {
    "r": 63,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 298.75,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.27475,
    "c": 0.09843,
    "h": 327
  },
  "luminance": 0.01798
}

Semantic roles & 50–950 ramp

primary
#3F1040
secondary
#337A32
accent
#E34548
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #3F1040

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

Preview Lab → · Contrast checker → · Palette generator →

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