#3F1579#3F1579

#3F1579 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.154 H 295.5°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#3F1579
RGBrgb(63, 21, 121)
HSLhsl(265, 70%, 28%)
HSVhsv(265, 83%, 47%)
CMYKcmyk(47.9%, 82.6%, 0%, 52.5%)
CIE-LABlab(19.94, 41.59, -48.52)
CIE-LCHlch(19.94, 63.91, 310.60°)
OKLaboklab(32.88% 0.0663 -0.1391)
OKLCHoklch(32.88% 0.154 295.5)
XYZxyz(5.7683, 2.9734, 18.3555)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1579 #4F7915
analogous
#151D79 #3F1579 #711579
triadic
#3F1579 #793F15 #15793F
tetradic
#3F1579 #79151D #4F7915 #157971
square
#3F1579 #79151D #4F7915 #157971
split-complementary
#3F1579 #797115 #1D7915
monochromatic
#0E051A #240C45 #3F1579 #5A1EAD #762EDB

Accessibility & contrast

On white

13.17
#3F1579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3F1579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1579
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1579#FFFFFF#000000##FFFFFF
##3F15791.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#2E3247
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f1579;
/* rgb */ color: rgb(63, 21, 121);
/* oklch */ color: oklch(32.9% 0.154 295.5);
Tailwind
colors: {
  custom: {
    50: '#7b58a1',
    500: '#3f1579',
    950: '#000000',
  },
}
SCSS
$custom: #3f1579;
$custom-light: #7b58a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1579",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 265.2,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32883,
    "c": 0.15411,
    "h": 295.5
  },
  "luminance": 0.02974
}

Semantic roles & 50–950 ramp

primary
#3F1579
secondary
#7EAF3B
accent
#ED3BA2
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1579

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

Preview Lab → · Contrast checker → · Palette generator →

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