#3F217B#3F217B

#3F217B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.143 H 292.6°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#3F217B
RGBrgb(63, 33, 123)
HSLhsl(260, 58%, 31%)
HSVhsv(260, 73%, 48%)
CMYKcmyk(48.8%, 73.2%, 0%, 51.8%)
CIE-LABlab(22.21, 36.22, -46.08)
CIE-LCHlch(22.21, 58.61, 308.17°)
OKLaboklab(34.54% 0.0549 -0.132)
OKLCHoklch(34.54% 0.143 292.6)
XYZxyz(6.1679, 3.5743, 19.1000)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F217B #5D7B21
analogous
#21307B #3F217B #6C217B
triadic
#3F217B #7B3F21 #217B3F
tetradic
#3F217B #7B2130 #5D7B21 #217B6C
square
#3F217B #7B2130 #5D7B21 #217B6C
split-complementary
#3F217B #7B6C21 #307B21
monochromatic
#0E071A #26144B #3F217B #582EAB #7548CE

Accessibility & contrast

On white

12.24
#3F217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3F217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F217B
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F217B#FFFFFF#000000##FFFFFF
##3F217B1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f217b;
/* rgb */ color: rgb(63, 33, 123);
/* oklch */ color: oklch(34.5% 0.143 292.6);
Tailwind
colors: {
  custom: {
    50: '#7a5fa2',
    500: '#3f217b',
    950: '#000000',
  },
}
SCSS
$custom: #3f217b;
$custom-light: #7a5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f217b",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 260,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3454,
    "c": 0.143,
    "h": 292.6
  },
  "luminance": 0.03575
}

Semantic roles & 50–950 ramp

primary
#3F217B
secondary
#8DAE4A
accent
#E147AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F217B

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

Preview Lab → · Contrast checker → · Palette generator →

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