#3F1780#3F1780

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

Color values

HEX#3F1780
RGBrgb(63, 23, 128)
HSLhsl(263, 70%, 30%)
HSVhsv(263, 82%, 50%)
CMYKcmyk(50.8%, 82%, 0%, 49.8%)
CIE-LABlab(20.93, 42.63, -51.34)
CIE-LCHlch(20.93, 66.73, 309.70°)
OKLaboklab(33.79% 0.0624 -0.1474)
OKLCHoklch(33.79% 0.16 292.9)
XYZxyz(6.2515, 3.2278, 20.7115)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1780 #588017
analogous
#172480 #3F1780 #741780
triadic
#3F1780 #803F17 #17803F
tetradic
#3F1780 #801724 #588017 #178074
square
#3F1780 #801724 #588017 #178074
split-complementary
#3F1780 #807417 #248017
monochromatic
#0D051A #250E4C #3F1780 #5920B4 #7536DB

Accessibility & contrast

On white

12.76
#3F1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3F1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1780
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1780#FFFFFF#000000##FFFFFF
##3F17801.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1780;
/* rgb */ color: rgb(63, 23, 128);
/* oklch */ color: oklch(33.8% 0.160 292.9);
Tailwind
colors: {
  custom: {
    50: '#7c5aa6',
    500: '#3f1780',
    950: '#000000',
  },
}
SCSS
$custom: #3f1780;
$custom-light: #7c5aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1780",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 262.857,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33787,
    "c": 0.16007,
    "h": 292.9
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

primary
#3F1780
secondary
#87B43E
accent
#EC3BA9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1780

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

Preview Lab → · Contrast checker → · Palette generator →

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