#3F1568#3F1568

#3F1568 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.135 H 301.9°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#3F1568
RGBrgb(63, 21, 104)
HSLhsl(270, 66%, 25%)
HSVhsv(270, 80%, 41%)
CMYKcmyk(39.4%, 79.8%, 0%, 59.2%)
CIE-LABlab(18.33, 37.04, -40.14)
CIE-LCHlch(18.33, 54.62, 312.70°)
OKLaboklab(31.27% 0.0714 -0.1145)
OKLCHoklch(31.27% 0.135 301.9)
XYZxyz(4.8162, 2.5925, 13.3407)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1568 #3E6815
analogous
#151568 #3F1568 #681568
triadic
#3F1568 #683F15 #15683F
tetradic
#3F1568 #681515 #3E6815 #156868
square
#3F1568 #681515 #3E6815 #156868
split-complementary
#3F1568 #686815 #156815
monochromatic
#0F0519 #200B35 #3F1568 #5E1F9B #7D2ACE

Accessibility & contrast

On white

13.83
#3F1568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3F1568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1568
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1568#FFFFFF#000000##FFFFFF
##3F15681.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#362A3E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3f1568;
/* rgb */ color: rgb(63, 21, 104);
/* oklch */ color: oklch(31.3% 0.135 301.9);
Tailwind
colors: {
  custom: {
    50: '#795794',
    500: '#3f1568',
    950: '#000000',
  },
}
SCSS
$custom: #3f1568;
$custom-light: #795794;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1568",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 270.361,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31268,
    "c": 0.13498,
    "h": 301.9
  },
  "luminance": 0.02593
}

Semantic roles & 50–950 ramp

primary
#3F1568
secondary
#6C9F3A
accent
#E93E93
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3F1568

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

Preview Lab → · Contrast checker → · Palette generator →

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