#3F0842#3F0842

#3F0842 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.8% C 0.111 H 325.8°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#3F0842
RGBrgb(63, 8, 66)
HSLhsl(297, 78%, 15%)
HSVhsv(297, 88%, 26%)
CMYKcmyk(4.5%, 87.9%, 0%, 74.1%)
CIE-LABlab(13.38, 33.48, -22.39)
CIE-LCHlch(13.38, 40.27, 326.23°)
OKLaboklab(26.8% 0.0917 -0.0623)
OKLCHoklch(26.8% 0.111 325.8)
XYZxyz(3.1200, 1.6240, 5.3023)
Luminance0.0162 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F0842 #0B4208
analogous
#220842 #3F0842 #420828
triadic
#3F0842 #423F08 #08423F
tetradic
#3F0842 #422208 #0B4208 #082842
square
#3F0842 #422208 #0B4208 #082842
split-complementary
#3F0842 #284208 #084222
monochromatic
#1A031B #1A031B #3F0842 #730F79 #A715AF

Accessibility & contrast

On white

15.85
#3F0842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F0842
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F0842#FFFFFF#000000##FFFFFF
##3F08421.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E44
Deuteranopia (green-blind)
#162541
Tritanopia (blue-blind)
#411325
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #3f0842;
/* rgb */ color: rgb(63, 8, 66);
/* oklch */ color: oklch(26.8% 0.111 325.8);
Tailwind
colors: {
  custom: {
    50: '#774f77',
    500: '#3f0842',
    950: '#000000',
  },
}
SCSS
$custom: #3f0842;
$custom-light: #774f77;
$custom-dark: #000000;
JSON
{
  "hex": "#3f0842",
  "rgb": {
    "r": 63,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 296.897,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.26795,
    "c": 0.11084,
    "h": 325.8
  },
  "luminance": 0.01624
}

Semantic roles & 50–950 ramp

primary
#3F0842
secondary
#2A8025
accent
#F5333D
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #3F0842

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

Preview Lab → · Contrast checker → · Palette generator →

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