#3F1785#3F1785

#3F1785 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.166 H 291.5°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#3F1785
RGBrgb(63, 23, 133)
HSLhsl(262, 71%, 31%)
HSVhsv(262, 83%, 52%)
CMYKcmyk(52.6%, 82.7%, 0%, 47.8%)
CIE-LABlab(21.44, 44.01, -53.67)
CIE-LCHlch(21.44, 69.40, 309.35°)
OKLaboklab(34.29% 0.0606 -0.1542)
OKLCHoklch(34.29% 0.166 291.5)
XYZxyz(6.5887, 3.3627, 22.4877)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1785 #5D8517
analogous
#172685 #3F1785 #761785
triadic
#3F1785 #853F17 #17853F
tetradic
#3F1785 #851726 #5D8517 #178576
square
#3F1785 #851726 #5D8517 #178576
split-complementary
#3F1785 #857617 #268517
monochromatic
#0E051D #260E51 #3F1785 #5820B9 #753ADD

Accessibility & contrast

On white

12.56
#3F1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3F1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1785
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1785#FFFFFF#000000##FFFFFF
##3F17851.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#26374F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1785;
/* rgb */ color: rgb(63, 23, 133);
/* oklch */ color: oklch(34.3% 0.166 291.5);
Tailwind
colors: {
  custom: {
    50: '#7d5aaa',
    500: '#3f1785',
    950: '#000000',
  },
}
SCSS
$custom: #3f1785;
$custom-light: #7d5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1785",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 261.818,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34293,
    "c": 0.1657,
    "h": 291.5
  },
  "luminance": 0.03363
}

Semantic roles & 50–950 ramp

primary
#3F1785
secondary
#8DB93F
accent
#ED3BAC
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1785

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

Preview Lab → · Contrast checker → · Palette generator →

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