#3F1A78#3F1A78

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

Color values

HEX#3F1A78
RGBrgb(63, 26, 120)
HSLhsl(264, 64%, 29%)
HSVhsv(264, 78%, 47%)
CMYKcmyk(47.5%, 78.3%, 0%, 52.9%)
CIE-LABlab(20.64, 39.01, -46.73)
CIE-LCHlch(20.64, 60.87, 309.86°)
OKLaboklab(33.35% 0.0623 -0.1339)
OKLCHoklch(33.35% 0.148 295)
XYZxyz(5.8085, 3.1515, 18.0679)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A78 #53781A
analogous
#1A2478 #3F1A78 #6E1A78
triadic
#3F1A78 #783F1A #1A783F
tetradic
#3F1A78 #781A24 #53781A #1A786E
square
#3F1A78 #781A24 #53781A #1A786E
split-complementary
#3F1A78 #786E1A #24781A
monochromatic
#0D0519 #250F46 #3F1A78 #5925AA #7638D4

Accessibility & contrast

On white

12.88
#3F1A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1A78
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A78#FFFFFF#000000##FFFFFF
##3F1A781.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#2F3348
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f1a78;
/* rgb */ color: rgb(63, 26, 120);
/* oklch */ color: oklch(33.3% 0.148 295.0);
Tailwind
colors: {
  custom: {
    50: '#7a5ba0',
    500: '#3f1a78',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a78;
$custom-light: #7a5ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a78",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 263.617,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33345,
    "c": 0.14772,
    "h": 295
  },
  "luminance": 0.03152
}

Semantic roles & 50–950 ramp

primary
#3F1A78
secondary
#82AC41
accent
#E740A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3F1A78

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

Preview Lab → · Contrast checker → · Palette generator →

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