#3F1580#3F1580

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

Color values

HEX#3F1580
RGBrgb(63, 21, 128)
HSLhsl(264, 72%, 29%)
HSVhsv(264, 84%, 50%)
CMYKcmyk(50.8%, 83.6%, 0%, 49.8%)
CIE-LABlab(20.64, 43.49, -51.83)
CIE-LCHlch(20.64, 67.65, 310.00°)
OKLaboklab(33.58% 0.0638 -0.1488)
OKLCHoklch(33.58% 0.162 293.2)
XYZxyz(6.2133, 3.1514, 20.6988)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1580 #568015
analogous
#152180 #3F1580 #751580
triadic
#3F1580 #803F15 #15803F
tetradic
#3F1580 #801521 #568015 #158075
square
#3F1580 #801521 #568015 #158075
split-complementary
#3F1580 #807515 #218015
monochromatic
#0D041A #250C4B #3F1580 #591EB5 #7532DD

Accessibility & contrast

On white

12.88
#3F1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3F1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1580
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1580#FFFFFF#000000##FFFFFF
##3F15801.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#2A344B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f1580;
/* rgb */ color: rgb(63, 21, 128);
/* oklch */ color: oklch(33.6% 0.162 293.2);
Tailwind
colors: {
  custom: {
    50: '#7c59a6',
    500: '#3f1580',
    950: '#000000',
  },
}
SCSS
$custom: #3f1580;
$custom-light: #7c59a6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1580",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 263.551,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33584,
    "c": 0.16192,
    "h": 293.2
  },
  "luminance": 0.03152
}

Semantic roles & 50–950 ramp

primary
#3F1580
secondary
#85B53C
accent
#EF39A7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1580

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

Preview Lab → · Contrast checker → · Palette generator →

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