#3F217A#3F217A

#3F217A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.142 H 292.9°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#3F217A
RGBrgb(63, 33, 122)
HSLhsl(260, 57%, 30%)
HSVhsv(260, 73%, 48%)
CMYKcmyk(48.4%, 73%, 0%, 52.2%)
CIE-LABlab(22.12, 35.93, -45.59)
CIE-LCHlch(22.12, 58.04, 308.24°)
OKLaboklab(34.45% 0.0551 -0.1306)
OKLCHoklch(34.45% 0.142 292.9)
XYZxyz(6.1056, 3.5494, 18.7720)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F217A #5C7A21
analogous
#212F7A #3F217A #6B217A
triadic
#3F217A #7A3F21 #217A3F
tetradic
#3F217A #7A212F #5C7A21 #217A6B
square
#3F217A #7A212F #5C7A21 #217A6B
split-complementary
#3F217A #7A6B21 #2F7A21
monochromatic
#0D071A #26144A #3F217A #582EAA #7548CD

Accessibility & contrast

On white

12.28
#3F217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3F217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F217A
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F217A#FFFFFF#000000##FFFFFF
##3F217A1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#2D384B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f217a;
/* rgb */ color: rgb(63, 33, 122);
/* oklch */ color: oklch(34.4% 0.142 292.9);
Tailwind
colors: {
  custom: {
    50: '#7a5fa1',
    500: '#3f217a',
    950: '#000000',
  },
}
SCSS
$custom: #3f217a;
$custom-light: #7a5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f217a",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 260.225,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34449,
    "c": 0.14175,
    "h": 292.9
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#3F217A
secondary
#8CAD4A
accent
#E147AD
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F217A

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

Preview Lab → · Contrast checker → · Palette generator →

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