#3F147F#3F147F

#3F147F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.162 H 293.7°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#3F147F
RGBrgb(63, 20, 127)
HSLhsl(264, 73%, 29%)
HSVhsv(264, 84%, 50%)
CMYKcmyk(50.4%, 84.3%, 0%, 50.2%)
CIE-LABlab(20.40, 43.63, -51.59)
CIE-LCHlch(20.40, 67.56, 310.22°)
OKLaboklab(33.39% 0.0649 -0.1481)
OKLCHoklch(33.39% 0.162 293.7)
XYZxyz(6.1298, 3.0892, 20.3479)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F147F #547F14
analogous
#141F7F #3F147F #75147F
triadic
#3F147F #7F3F14 #147F3F
tetradic
#3F147F #7F141F #547F14 #147F75
square
#3F147F #7F141F #547F14 #147F75
split-complementary
#3F147F #7F7514 #1F7F14
monochromatic
#0D041A #250C4A #3F147F #591CB4 #762FDE

Accessibility & contrast

On white

12.98
#3F147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F147F
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F147F#FFFFFF#000000##FFFFFF
##3F147F1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#2B344B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f147f;
/* rgb */ color: rgb(63, 20, 127);
/* oklch */ color: oklch(33.4% 0.162 293.7);
Tailwind
colors: {
  custom: {
    50: '#7c58a5',
    500: '#3f147f',
    950: '#000000',
  },
}
SCSS
$custom: #3f147f;
$custom-light: #7c58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f147f",
  "rgb": {
    "r": 63,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 264.112,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33385,
    "c": 0.1617,
    "h": 293.7
  },
  "luminance": 0.03089
}

Semantic roles & 50–950 ramp

primary
#3F147F
secondary
#83B43B
accent
#EF38A6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F147F

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

Preview Lab → · Contrast checker → · Palette generator →

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