#3F217E#3F217E

#3F217E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.147 H 291.7°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#3F217E
RGBrgb(63, 33, 126)
HSLhsl(259, 58%, 31%)
HSVhsv(259, 74%, 49%)
CMYKcmyk(50%, 73.8%, 0%, 50.6%)
CIE-LABlab(22.48, 37.11, -47.54)
CIE-LCHlch(22.48, 60.31, 307.98°)
OKLaboklab(34.82% 0.0542 -0.1363)
OKLCHoklch(34.82% 0.147 291.7)
XYZxyz(6.3586, 3.6506, 20.1042)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F217E #607E21
analogous
#21317E #3F217E #6D217E
triadic
#3F217E #7E3F21 #217E3F
tetradic
#3F217E #7E2131 #607E21 #217E6D
square
#3F217E #7E2131 #607E21 #217E6D
split-complementary
#3F217E #7E6D21 #317E21
monochromatic
#0F081D #27144E #3F217E #572EAE #754AD0

Accessibility & contrast

On white

12.14
#3F217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3F217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F217E
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F217E#FFFFFF#000000##FFFFFF
##3F217E1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#2B394D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f217e;
/* rgb */ color: rgb(63, 33, 126);
/* oklch */ color: oklch(34.8% 0.147 291.7);
Tailwind
colors: {
  custom: {
    50: '#7b5fa4',
    500: '#3f217e',
    950: '#000000',
  },
}
SCSS
$custom: #3f217e;
$custom-light: #7b5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f217e",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 259.355,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34815,
    "c": 0.14674,
    "h": 291.7
  },
  "luminance": 0.03651
}

Semantic roles & 50–950 ramp

primary
#3F217E
secondary
#90B14A
accent
#E246B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F217E

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

Preview Lab → · Contrast checker → · Palette generator →

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