#3F1781#3F1781

#3F1781 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.161 H 292.6°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#3F1781
RGBrgb(63, 23, 129)
HSLhsl(263, 70%, 30%)
HSVhsv(263, 82%, 51%)
CMYKcmyk(51.2%, 82.2%, 0%, 49.4%)
CIE-LABlab(21.03, 42.91, -51.81)
CIE-LCHlch(21.03, 67.27, 309.63°)
OKLaboklab(33.89% 0.062 -0.1488)
OKLCHoklch(33.89% 0.161 292.6)
XYZxyz(6.3176, 3.2543, 21.0599)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1781 #598117
analogous
#172481 #3F1781 #741781
triadic
#3F1781 #813F17 #17813F
tetradic
#3F1781 #811724 #598117 #178174
square
#3F1781 #811724 #598117 #178174
split-complementary
#3F1781 #817417 #248117
monochromatic
#0D051A #260E4D #3F1781 #5820B5 #7537DB

Accessibility & contrast

On white

12.72
#3F1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1781
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1781#FFFFFF#000000##FFFFFF
##3F17811.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#29364C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1781;
/* rgb */ color: rgb(63, 23, 129);
/* oklch */ color: oklch(33.9% 0.161 292.6);
Tailwind
colors: {
  custom: {
    50: '#7c5aa7',
    500: '#3f1781',
    950: '#000000',
  },
}
SCSS
$custom: #3f1781;
$custom-light: #7c5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1781",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 262.642,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33888,
    "c": 0.16119,
    "h": 292.6
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#3F1781
secondary
#88B53E
accent
#ED3BAA
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1781

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

Preview Lab → · Contrast checker → · Palette generator →

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