#3F216B#3F216B

#3F216B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.123 H 298.0°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#3F216B
RGBrgb(63, 33, 107)
HSLhsl(264, 53%, 27%)
HSVhsv(264, 69%, 42%)
CMYKcmyk(41.1%, 69.2%, 0%, 58%)
CIE-LABlab(20.85, 31.54, -38.01)
CIE-LCHlch(20.85, 49.39, 309.69°)
OKLaboklab(33.14% 0.0576 -0.1083)
OKLCHoklch(33.14% 0.123 298)
XYZxyz(5.2469, 3.2059, 14.2494)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F216B #4D6B21
analogous
#21286B #3F216B #64216B
triadic
#3F216B #6B3F21 #216B3F
tetradic
#3F216B #6B2128 #4D6B21 #216B64
square
#3F216B #6B2128 #4D6B21 #216B64
split-complementary
#3F216B #6B6421 #286B21
monochromatic
#0E0717 #23133C #3F216B #5B2F9A #7742C5

Accessibility & contrast

On white

12.80
#3F216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3F216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F216B
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F216B#FFFFFF#000000##FFFFFF
##3F216B1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#003169
Tritanopia (blue-blind)
#343243
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f216b;
/* rgb */ color: rgb(63, 33, 107);
/* oklch */ color: oklch(33.1% 0.123 298.0);
Tailwind
colors: {
  custom: {
    50: '#785e96',
    500: '#3f216b',
    950: '#000000',
  },
}
SCSS
$custom: #3f216b;
$custom-light: #785e96;
$custom-dark: #000000;
JSON
{
  "hex": "#3f216b",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 264.324,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3314,
    "c": 0.12267,
    "h": 298
  },
  "luminance": 0.03206
}

Semantic roles & 50–950 ramp

primary
#3F216B
secondary
#7C9F49
accent
#DC4CA2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3F216B

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

Preview Lab → · Contrast checker → · Palette generator →

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