#3F218F#3F218F

#3F218F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.168 H 287.4°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#3F218F
RGBrgb(63, 33, 143)
HSLhsl(256, 63%, 35%)
HSVhsv(256, 77%, 56%)
CMYKcmyk(55.9%, 76.9%, 0%, 43.9%)
CIE-LABlab(24.09, 42.15, -55.56)
CIE-LCHlch(24.09, 69.74, 307.18°)
OKLaboklab(36.44% 0.05 -0.1599)
OKLCHoklch(36.44% 0.168 287.4)
XYZxyz(7.5502, 4.1272, 26.3801)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F218F #718F21
analogous
#213A8F #3F218F #76218F
triadic
#3F218F #8F3F21 #218F3F
tetradic
#3F218F #8F213A #718F21 #218F76
square
#3F218F #8F213A #718F21 #218F76
split-complementary
#3F218F #8F7621 #3A8F21
monochromatic
#130A2C #29165D #3F218F #552CC1 #7753D7

Accessibility & contrast

On white

11.50
#3F218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3F218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F218F
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F218F#FFFFFF#000000##FFFFFF
##3F218F1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#1D4057
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f218f;
/* rgb */ color: rgb(63, 33, 143);
/* oklch */ color: oklch(36.4% 0.168 287.4);
Tailwind
colors: {
  custom: {
    50: '#7e60b1',
    500: '#3f218f',
    950: '#000000',
  },
}
SCSS
$custom: #3f218f;
$custom-light: #7e60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f218f",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 256.364,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36442,
    "c": 0.16751,
    "h": 287.4
  },
  "luminance": 0.04128
}

Semantic roles & 50–950 ramp

primary
#3F218F
secondary
#9EBB51
accent
#E642B9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F218F

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

Preview Lab → · Contrast checker → · Palette generator →

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