#3F219F#3F219F

#3F219F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.186 H 284.1°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#3F219F
RGBrgb(63, 33, 159)
HSLhsl(254, 66%, 38%)
HSVhsv(254, 79%, 62%)
CMYKcmyk(60.4%, 79.2%, 0%, 37.6%)
CIE-LABlab(25.70, 46.86, -62.74)
CIE-LCHlch(25.70, 78.31, 306.75°)
OKLaboklab(38.06% 0.0454 -0.1808)
OKLCHoklch(38.06% 0.186 284.1)
XYZxyz(8.8498, 4.6471, 33.2248)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F219F #819F21
analogous
#21429F #3F219F #7E219F
triadic
#3F219F #9F3F21 #219F3F
tetradic
#3F219F #9F2142 #819F21 #219F7E
square
#3F219F #9F2142 #819F21 #219F7E
split-complementary
#3F219F #9F7E21 #429F21
monochromatic
#170C3A #2B166C #3F219F #532CD2 #7C5DDD

Accessibility & contrast

On white

10.88
#3F219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3F219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F219F
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F219F#FFFFFF#000000##FFFFFF
##3F219F1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f219f;
/* rgb */ color: rgb(63, 33, 159);
/* oklch */ color: oklch(38.1% 0.186 284.1);
Tailwind
colors: {
  custom: {
    50: '#8061bd',
    500: '#3f219f',
    950: '#000000',
  },
}
SCSS
$custom: #3f219f;
$custom-light: #8061bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3f219f",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 254.286,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3806,
    "c": 0.18646,
    "h": 284.1
  },
  "luminance": 0.04648
}

Semantic roles & 50–950 ramp

primary
#3F219F
secondary
#A9C25A
accent
#E93FC0
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3F219F

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

Preview Lab → · Contrast checker → · Palette generator →

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