#3F1B78#3F1B78

#3F1B78 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.147 H 294.8°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#3F1B78
RGBrgb(63, 27, 120)
HSLhsl(263, 63%, 29%)
HSVhsv(263, 78%, 47%)
CMYKcmyk(47.5%, 77.5%, 0%, 52.9%)
CIE-LABlab(20.81, 38.52, -46.45)
CIE-LCHlch(20.81, 60.34, 309.67°)
OKLaboklab(33.47% 0.0614 -0.1331)
OKLCHoklch(33.47% 0.147 294.8)
XYZxyz(5.8311, 3.1965, 18.0754)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B78 #54781B
analogous
#1B2678 #3F1B78 #6E1B78
triadic
#3F1B78 #783F1B #1B783F
tetradic
#3F1B78 #781B26 #54781B #1B786E
square
#3F1B78 #781B26 #54781B #1B786E
split-complementary
#3F1B78 #786E1B #26781B
monochromatic
#0D0619 #251046 #3F1B78 #5926AA #763BD3

Accessibility & contrast

On white

12.81
#3F1B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1B78
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B78#FFFFFF#000000##FFFFFF
##3F1B781.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.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: #3f1b78;
/* rgb */ color: rgb(63, 27, 120);
/* oklch */ color: oklch(33.5% 0.147 294.8);
Tailwind
colors: {
  custom: {
    50: '#7a5ba0',
    500: '#3f1b78',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b78;
$custom-light: #7a5ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b78",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 263.226,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33467,
    "c": 0.14659,
    "h": 294.8
  },
  "luminance": 0.03197
}

Semantic roles & 50–950 ramp

primary
#3F1B78
secondary
#83AC43
accent
#E641A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3F1B78

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

Preview Lab → · Contrast checker → · Palette generator →

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