#3F1771#3F1771

#3F1771 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.143 H 298.0°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#3F1771
RGBrgb(63, 23, 113)
HSLhsl(267, 66%, 27%)
HSVhsv(267, 80%, 44%)
CMYKcmyk(44.2%, 79.6%, 0%, 55.7%)
CIE-LABlab(19.48, 38.52, -44.12)
CIE-LCHlch(19.48, 58.57, 311.12°)
OKLaboklab(32.33% 0.0671 -0.1262)
OKLCHoklch(32.33% 0.143 298)
XYZxyz(5.3362, 2.8617, 15.8908)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1771 #497117
analogous
#171C71 #3F1771 #6C1771
triadic
#3F1771 #713F17 #17713F
tetradic
#3F1771 #71171C #497117 #17716C
square
#3F1771 #71171C #497117 #17716C
split-complementary
#3F1771 #716C17 #1C7117
monochromatic
#0E0519 #230D3E #3F1771 #5B21A4 #782ED4

Accessibility & contrast

On white

13.36
#3F1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3F1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1771
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1771#FFFFFF#000000##FFFFFF
##3F17711.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#322F43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3f1771;
/* rgb */ color: rgb(63, 23, 113);
/* oklch */ color: oklch(32.3% 0.143 298.0);
Tailwind
colors: {
  custom: {
    50: '#7a599b',
    500: '#3f1771',
    950: '#000000',
  },
}
SCSS
$custom: #3f1771;
$custom-light: #7a599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1771",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 266.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32329,
    "c": 0.14295,
    "h": 298
  },
  "luminance": 0.02862
}

Semantic roles & 50–950 ramp

primary
#3F1771
secondary
#78A73D
accent
#E93F9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1771

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

Preview Lab → · Contrast checker → · Palette generator →

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