#3F1681#3F1681

#3F1681 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.162 H 292.8°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#3F1681
RGBrgb(63, 22, 129)
HSLhsl(263, 71%, 30%)
HSVhsv(263, 83%, 51%)
CMYKcmyk(51.2%, 82.9%, 0%, 49.4%)
CIE-LABlab(20.89, 43.34, -52.05)
CIE-LCHlch(20.89, 67.73, 309.78°)
OKLaboklab(33.78% 0.0628 -0.1495)
OKLCHoklch(33.78% 0.162 292.8)
XYZxyz(6.2981, 3.2153, 21.0534)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1681 #588116
analogous
#162281 #3F1681 #751681
triadic
#3F1681 #813F16 #16813F
tetradic
#3F1681 #811622 #588116 #168175
square
#3F1681 #811622 #588116 #168175
split-complementary
#3F1681 #817516 #228116
monochromatic
#0D041A #250D4D #3F1681 #591FB5 #7535DD

Accessibility & contrast

On white

12.78
#3F1681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3F1681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1681
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1681#FFFFFF#000000##FFFFFF
##3F16811.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#29354C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f1681;
/* rgb */ color: rgb(63, 22, 129);
/* oklch */ color: oklch(33.8% 0.162 292.8);
Tailwind
colors: {
  custom: {
    50: '#7c59a7',
    500: '#3f1681',
    950: '#000000',
  },
}
SCSS
$custom: #3f1681;
$custom-light: #7c59a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1681",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 262.991,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33785,
    "c": 0.16213,
    "h": 292.8
  },
  "luminance": 0.03216
}

Semantic roles & 50–950 ramp

primary
#3F1681
secondary
#87B63D
accent
#EE3AA9
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1681

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

Preview Lab → · Contrast checker → · Palette generator →

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