#3F1B76#3F1B76

#3F1B76 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.144 H 295.4°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#3F1B76
RGBrgb(63, 27, 118)
HSLhsl(264, 63%, 28%)
HSVhsv(264, 77%, 46%)
CMYKcmyk(46.6%, 77.1%, 0%, 53.7%)
CIE-LABlab(20.63, 37.95, -45.47)
CIE-LCHlch(20.63, 59.23, 309.85°)
OKLaboklab(33.28% 0.0619 -0.1302)
OKLCHoklch(33.28% 0.144 295.4)
XYZxyz(5.7110, 3.1485, 17.4429)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B76 #52761B
analogous
#1B2476 #3F1B76 #6C1B76
triadic
#3F1B76 #763F1B #1B763F
tetradic
#3F1B76 #761B24 #52761B #1B766C
square
#3F1B76 #761B24 #52761B #1B766C
split-complementary
#3F1B76 #766C1B #24761B
monochromatic
#0D0619 #241044 #3F1B76 #5A26A8 #763AD2

Accessibility & contrast

On white

12.89
#3F1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1B76
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B76#FFFFFF#000000##FFFFFF
##3F1B761.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#303347
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f1b76;
/* rgb */ color: rgb(63, 27, 118);
/* oklch */ color: oklch(33.3% 0.144 295.4);
Tailwind
colors: {
  custom: {
    50: '#7a5b9e',
    500: '#3f1b76',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b76;
$custom-light: #7a5b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b76",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 263.736,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33279,
    "c": 0.14421,
    "h": 295.4
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#3F1B76
secondary
#81AA42
accent
#E642A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1B76

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

Preview Lab → · Contrast checker → · Palette generator →

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