#3F2879#3F2879

#3F2879 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.4% C 0.131 H 291.3°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#3F2879
RGBrgb(63, 40, 121)
HSLhsl(257, 50%, 32%)
HSVhsv(257, 67%, 47%)
CMYKcmyk(47.9%, 66.9%, 0%, 52.5%)
CIE-LABlab(23.52, 31.56, -42.67)
CIE-LCHlch(23.52, 53.08, 306.49°)
OKLaboklab(35.43% 0.0476 -0.1221)
OKLCHoklch(35.43% 0.131 291.3)
XYZxyz(6.2589, 3.9546, 18.5190)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2879 #627928
analogous
#283A79 #3F2879 #682879
triadic
#3F2879 #793F28 #28793F
tetradic
#3F2879 #79283A #627928 #287968
square
#3F2879 #79283A #627928 #287968
split-complementary
#3F2879 #796828 #3A7928
monochromatic
#0F0A1D #27194B #3F2879 #5737A7 #7555C7

Accessibility & contrast

On white

11.73
#3F2879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3F2879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2879
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2879#FFFFFF#000000##FFFFFF
##3F28791.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#2D3B4C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f2879;
/* rgb */ color: rgb(63, 40, 121);
/* oklch */ color: oklch(35.4% 0.131 291.3);
Tailwind
colors: {
  custom: {
    50: '#7963a0',
    500: '#3f2879',
    950: '#000000',
  },
}
SCSS
$custom: #3f2879;
$custom-light: #7963a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2879",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 257.037,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35426,
    "c": 0.13102,
    "h": 291.3
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

primary
#3F2879
secondary
#92AB52
accent
#DA4EB2
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#0A050F
muted
#7C7A7E

Preview Lab

Preview with #3F2879

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

Preview Lab → · Contrast checker → · Palette generator →

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