#3F1D87#3F1D87

#3F1D87 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.162 H 290.0°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#3F1D87
RGBrgb(63, 29, 135)
HSLhsl(259, 65%, 32%)
HSVhsv(259, 79%, 53%)
CMYKcmyk(53.3%, 78.5%, 0%, 47.1%)
CIE-LABlab(22.60, 41.81, -53.02)
CIE-LCHlch(22.60, 67.52, 308.26°)
OKLaboklab(35.16% 0.0555 -0.1524)
OKLCHoklch(35.16% 0.162 290)
XYZxyz(6.8612, 3.6845, 23.2666)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1D87 #65871D
analogous
#1D3087 #3F1D87 #741D87
triadic
#3F1D87 #873F1D #1D873F
tetradic
#3F1D87 #871D30 #65871D #1D8774
square
#3F1D87 #871D30 #65871D #1D8774
split-complementary
#3F1D87 #87741D #30871D
monochromatic
#100722 #271255 #3F1D87 #5728B9 #7547D7

Accessibility & contrast

On white

12.09
#3F1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3F1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1D87
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1D87#FFFFFF#000000##FFFFFF
##3F1D871.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#253B51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f1d87;
/* rgb */ color: rgb(63, 29, 135);
/* oklch */ color: oklch(35.2% 0.162 290.0);
Tailwind
colors: {
  custom: {
    50: '#7c5dab',
    500: '#3f1d87',
    950: '#000000',
  },
}
SCSS
$custom: #3f1d87;
$custom-light: #7c5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1d87",
  "rgb": {
    "r": 63,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 259.245,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35159,
    "c": 0.16216,
    "h": 290
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#3F1D87
secondary
#95B946
accent
#E840B2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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