#3F1B79#3F1B79

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

Color values

HEX#3F1B79
RGBrgb(63, 27, 121)
HSLhsl(263, 64%, 29%)
HSVhsv(263, 78%, 47%)
CMYKcmyk(47.9%, 77.7%, 0%, 52.5%)
CIE-LABlab(20.91, 38.80, -46.93)
CIE-LCHlch(20.91, 60.89, 309.58°)
OKLaboklab(33.56% 0.0612 -0.1345)
OKLCHoklch(33.56% 0.148 294.4)
XYZxyz(5.8921, 3.2209, 18.3967)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B79 #55791B
analogous
#1B2679 #3F1B79 #6E1B79
triadic
#3F1B79 #793F1B #1B793F
tetradic
#3F1B79 #791B26 #55791B #1B796E
square
#3F1B79 #791B26 #55791B #1B796E
split-complementary
#3F1B79 #796E1B #26791B
monochromatic
#0D0619 #251047 #3F1B79 #5926AB #753BD3

Accessibility & contrast

On white

12.77
#3F1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3F1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1B79
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B79#FFFFFF#000000##FFFFFF
##3F1B791.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#2E3449
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f1b79;
/* rgb */ color: rgb(63, 27, 121);
/* oklch */ color: oklch(33.6% 0.148 294.4);
Tailwind
colors: {
  custom: {
    50: '#7a5ba1',
    500: '#3f1b79',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b79;
$custom-light: #7a5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b79",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 262.979,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33561,
    "c": 0.14777,
    "h": 294.4
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#3F1B79
secondary
#84AD43
accent
#E741A7
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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