#3F0840#3F0840

#3F0840 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.7% C 0.109 H 327.3°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#3F0840
RGBrgb(63, 8, 64)
HSLhsl(299, 78%, 14%)
HSVhsv(299, 88%, 25%)
CMYKcmyk(1.6%, 87.5%, 0%, 74.9%)
CIE-LABlab(13.23, 33.08, -21.20)
CIE-LCHlch(13.23, 39.29, 327.35°)
OKLaboklab(26.65% 0.0918 -0.0589)
OKLCHoklch(26.65% 0.109 327.3)
XYZxyz(3.0621, 1.6008, 4.9972)
Luminance0.0160 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F0840 #094008
analogous
#230840 #3F0840 #400825
triadic
#3F0840 #403F08 #08403F
tetradic
#3F0840 #402308 #094008 #082540
square
#3F0840 #402308 #094008 #082540
split-complementary
#3F0840 #254008 #084023
monochromatic
#1B031B #1B031B #3F0840 #750F76 #AA16AD

Accessibility & contrast

On white

15.91
#3F0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#3F0840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F0840
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F0840#FFFFFF#000000##FFFFFF
##3F08401.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#17243F
Tritanopia (blue-blind)
#411224
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #3f0840;
/* rgb */ color: rgb(63, 8, 64);
/* oklch */ color: oklch(26.7% 0.109 327.3);
Tailwind
colors: {
  custom: {
    50: '#774f75',
    500: '#3f0840',
    950: '#000000',
  },
}
SCSS
$custom: #3f0840;
$custom-light: #774f75;
$custom-dark: #000000;
JSON
{
  "hex": "#3f0840",
  "rgb": {
    "r": 63,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 298.929,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.2665,
    "c": 0.10903,
    "h": 327.3
  },
  "luminance": 0.01601
}

Semantic roles & 50–950 ramp

primary
#3F0840
secondary
#277E25
accent
#F43437
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #3F0840

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

Preview Lab → · Contrast checker → · Palette generator →

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