#3F1F79#3F1F79

#3F1F79 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.143 H 293.6°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#3F1F79
RGBrgb(63, 31, 121)
HSLhsl(261, 59%, 30%)
HSVhsv(261, 74%, 47%)
CMYKcmyk(47.9%, 74.4%, 0%, 52.5%)
CIE-LABlab(21.64, 36.73, -45.73)
CIE-LCHlch(21.64, 58.65, 308.77°)
OKLaboklab(34.08% 0.0573 -0.131)
OKLCHoklch(34.08% 0.143 293.6)
XYZxyz(5.9901, 3.4170, 18.4294)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F79 #59791F
analogous
#1F2C79 #3F1F79 #6C1F79
triadic
#3F1F79 #793F1F #1F793F
tetradic
#3F1F79 #791F2C #59791F #1F796C
square
#3F1F79 #791F2C #59791F #1F796C
split-complementary
#3F1F79 #796C1F #2C791F
monochromatic
#0D0618 #261348 #3F1F79 #582BAA #7543CF

Accessibility & contrast

On white

12.47
#3F1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3F1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F79
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F79#FFFFFF#000000##FFFFFF
##3F1F791.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#2E364A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1f79;
/* rgb */ color: rgb(63, 31, 121);
/* oklch */ color: oklch(34.1% 0.143 293.6);
Tailwind
colors: {
  custom: {
    50: '#7a5ea0',
    500: '#3f1f79',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f79;
$custom-light: #7a5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f79",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 261.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3408,
    "c": 0.14302,
    "h": 293.6
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#3F1F79
secondary
#88AC47
accent
#E245AB
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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