#3F1C78#3F1C78

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

Color values

HEX#3F1C78
RGBrgb(63, 28, 120)
HSLhsl(263, 62%, 29%)
HSVhsv(263, 77%, 47%)
CMYKcmyk(47.5%, 76.7%, 0%, 52.9%)
CIE-LABlab(20.99, 38.01, -46.15)
CIE-LCHlch(20.99, 59.79, 309.47°)
OKLaboklab(33.59% 0.0605 -0.1322)
OKLCHoklch(33.59% 0.145 294.6)
XYZxyz(5.8544, 3.2432, 18.0832)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1C78 #55781C
analogous
#1C2778 #3F1C78 #6D1C78
triadic
#3F1C78 #783F1C #1C783F
tetradic
#3F1C78 #781C27 #55781C #1C786D
square
#3F1C78 #781C27 #55781C #1C786D
split-complementary
#3F1C78 #786D1C #27781C
monochromatic
#0D0619 #251046 #3F1C78 #5928AA #753DD2

Accessibility & contrast

On white

12.74
#3F1C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3F1C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1C78
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1C78#FFFFFF#000000##FFFFFF
##3F1C781.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#2F3448
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f1c78;
/* rgb */ color: rgb(63, 28, 120);
/* oklch */ color: oklch(33.6% 0.145 294.6);
Tailwind
colors: {
  custom: {
    50: '#7a5ca0',
    500: '#3f1c78',
    950: '#000000',
  },
}
SCSS
$custom: #3f1c78;
$custom-light: #7a5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1c78",
  "rgb": {
    "r": 63,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 262.826,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33592,
    "c": 0.14542,
    "h": 294.6
  },
  "luminance": 0.03243
}

Semantic roles & 50–950 ramp

primary
#3F1C78
secondary
#84AC44
accent
#E543A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3F1C78

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

Preview Lab → · Contrast checker → · Palette generator →

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