#3F1A76#3F1A76

#3F1A76 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.145 H 295.6°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#3F1A76
RGBrgb(63, 26, 118)
HSLhsl(264, 64%, 28%)
HSVhsv(264, 78%, 46%)
CMYKcmyk(46.6%, 78%, 0%, 53.7%)
CIE-LABlab(20.45, 38.45, -45.76)
CIE-LCHlch(20.45, 59.77, 310.04°)
OKLaboklab(33.16% 0.0629 -0.1311)
OKLCHoklch(33.16% 0.145 295.6)
XYZxyz(5.6884, 3.1034, 17.4353)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A76 #51761A
analogous
#1A2376 #3F1A76 #6D1A76
triadic
#3F1A76 #763F1A #1A763F
tetradic
#3F1A76 #761A23 #51761A #1A766D
square
#3F1A76 #761A23 #51761A #1A766D
split-complementary
#3F1A76 #766D1A #23761A
monochromatic
#0D0619 #240F44 #3F1A76 #5A25A8 #7637D3

Accessibility & contrast

On white

12.96
#3F1A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3F1A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1A76
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A76#FFFFFF#000000##FFFFFF
##3F1A761.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#303247
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f1a76;
/* rgb */ color: rgb(63, 26, 118);
/* oklch */ color: oklch(33.2% 0.145 295.6);
Tailwind
colors: {
  custom: {
    50: '#7a5b9e',
    500: '#3f1a76',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a76;
$custom-light: #7a5b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a76",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 264.13,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33155,
    "c": 0.14537,
    "h": 295.6
  },
  "luminance": 0.03104
}

Semantic roles & 50–950 ramp

primary
#3F1A76
secondary
#80AB41
accent
#E741A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1A76

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

Preview Lab → · Contrast checker → · Palette generator →

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