#3F217F#3F217F

#3F217F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.148 H 291.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#3F217F
RGBrgb(63, 33, 127)
HSLhsl(259, 59%, 31%)
HSVhsv(259, 74%, 50%)
CMYKcmyk(50.4%, 74%, 0%, 50.2%)
CIE-LABlab(22.57, 37.41, -48.02)
CIE-LCHlch(22.57, 60.87, 307.91°)
OKLaboklab(34.91% 0.054 -0.1378)
OKLCHoklch(34.91% 0.148 291.4)
XYZxyz(6.4234, 3.6765, 20.4458)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F217F #617F21
analogous
#21327F #3F217F #6E217F
triadic
#3F217F #7F3F21 #217F3F
tetradic
#3F217F #7F2132 #617F21 #217F6E
square
#3F217F #7F2132 #617F21 #217F6E
split-complementary
#3F217F #7F6E21 #327F21
monochromatic
#0F081E #27144E #3F217F #572EB0 #754AD0

Accessibility & contrast

On white

12.10
#3F217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3F217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F217F
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F217F#FFFFFF#000000##FFFFFF
##3F217F1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#2A394E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f217f;
/* rgb */ color: rgb(63, 33, 127);
/* oklch */ color: oklch(34.9% 0.148 291.4);
Tailwind
colors: {
  custom: {
    50: '#7b5fa5',
    500: '#3f217f',
    950: '#000000',
  },
}
SCSS
$custom: #3f217f;
$custom-light: #7b5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f217f",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 259.149,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34908,
    "c": 0.14798,
    "h": 291.4
  },
  "luminance": 0.03677
}

Semantic roles & 50–950 ramp

primary
#3F217F
secondary
#91B24A
accent
#E246B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F217F

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

Preview Lab → · Contrast checker → · Palette generator →

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