#3F1687#3F1687

#3F1687 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.169 H 291.0°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#3F1687
RGBrgb(63, 22, 135)
HSLhsl(262, 72%, 31%)
HSVhsv(262, 84%, 53%)
CMYKcmyk(53.3%, 83.7%, 0%, 47.1%)
CIE-LABlab(21.50, 44.98, -54.82)
CIE-LCHlch(21.50, 70.91, 309.37°)
OKLaboklab(34.4% 0.0606 -0.1576)
OKLCHoklch(34.4% 0.169 291)
XYZxyz(6.7087, 3.3796, 23.2158)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1687 #5E8716
analogous
#162587 #3F1687 #771687
triadic
#3F1687 #873F16 #16873F
tetradic
#3F1687 #871625 #5E8716 #168777
square
#3F1687 #871625 #5E8716 #168777
split-complementary
#3F1687 #877716 #258716
monochromatic
#0E051E #260D52 #3F1687 #581FBC #7539DF

Accessibility & contrast

On white

12.53
#3F1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3F1687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1687
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1687#FFFFFF#000000##FFFFFF
##3F16871.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#253850
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1687;
/* rgb */ color: rgb(63, 22, 135);
/* oklch */ color: oklch(34.4% 0.169 291.0);
Tailwind
colors: {
  custom: {
    50: '#7d5aab',
    500: '#3f1687',
    950: '#000000',
  },
}
SCSS
$custom: #3f1687;
$custom-light: #7d5aab;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1687",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 261.77,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34398,
    "c": 0.16883,
    "h": 291
  },
  "luminance": 0.0338
}

Semantic roles & 50–950 ramp

primary
#3F1687
secondary
#8EBB3E
accent
#EF39AD
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3F1687

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

Preview Lab → · Contrast checker → · Palette generator →

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