#3F1A79#3F1A79

#3F1A79 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.149 H 294.6°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#3F1A79
RGBrgb(63, 26, 121)
HSLhsl(263, 65%, 29%)
HSVhsv(263, 79%, 47%)
CMYKcmyk(47.9%, 78.5%, 0%, 52.5%)
CIE-LABlab(20.73, 39.29, -47.22)
CIE-LCHlch(20.73, 61.43, 309.77°)
OKLaboklab(33.44% 0.0621 -0.1353)
OKLCHoklch(33.44% 0.149 294.6)
XYZxyz(5.8695, 3.1759, 18.3892)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A79 #54791A
analogous
#1A2579 #3F1A79 #6F1A79
triadic
#3F1A79 #793F1A #1A793F
tetradic
#3F1A79 #791A25 #54791A #1A796F
square
#3F1A79 #791A25 #54791A #1A796F
split-complementary
#3F1A79 #796F1A #25791A
monochromatic
#0D0519 #250F47 #3F1A79 #5925AB #7639D4

Accessibility & contrast

On white

12.84
#3F1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1A79
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A79#FFFFFF#000000##FFFFFF
##3F1A791.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1a79;
/* rgb */ color: rgb(63, 26, 121);
/* oklch */ color: oklch(33.4% 0.149 294.6);
Tailwind
colors: {
  custom: {
    50: '#7b5ba1',
    500: '#3f1a79',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a79;
$custom-light: #7b5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a79",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 263.368,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3344,
    "c": 0.1489,
    "h": 294.6
  },
  "luminance": 0.03176
}

Semantic roles & 50–950 ramp

primary
#3F1A79
secondary
#83AD41
accent
#E840A6
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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