#3F1A77#3F1A77

#3F1A77 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.147 H 295.3°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#3F1A77
RGBrgb(63, 26, 119)
HSLhsl(264, 64%, 28%)
HSVhsv(264, 78%, 47%)
CMYKcmyk(47.1%, 78.2%, 0%, 53.3%)
CIE-LABlab(20.55, 38.73, -46.24)
CIE-LCHlch(20.55, 60.32, 309.95°)
OKLaboklab(33.25% 0.0626 -0.1325)
OKLCHoklch(33.25% 0.147 295.3)
XYZxyz(5.7482, 3.1273, 17.7500)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A77 #52771A
analogous
#1A2377 #3F1A77 #6D1A77
triadic
#3F1A77 #773F1A #1A773F
tetradic
#3F1A77 #771A23 #52771A #1A776D
square
#3F1A77 #771A23 #52771A #1A776D
split-complementary
#3F1A77 #776D1A #23771A
monochromatic
#0D0519 #240F45 #3F1A77 #5A25A9 #7638D3

Accessibility & contrast

On white

12.92
#3F1A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1A77
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A77#FFFFFF#000000##FFFFFF
##3F1A771.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#2F3347
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f1a77;
/* rgb */ color: rgb(63, 26, 119);
/* oklch */ color: oklch(33.3% 0.147 295.3);
Tailwind
colors: {
  custom: {
    50: '#7a5b9f',
    500: '#3f1a77',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a77;
$custom-light: #7a5b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a77",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 263.871,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3325,
    "c": 0.14655,
    "h": 295.3
  },
  "luminance": 0.03127
}

Semantic roles & 50–950 ramp

primary
#3F1A77
secondary
#81AC41
accent
#E741A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3F1A77

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

Preview Lab → · Contrast checker → · Palette generator →

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