#3F218A#3F218A

#3F218A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.161 H 288.5°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#3F218A
RGBrgb(63, 33, 138)
HSLhsl(257, 61%, 34%)
HSVhsv(257, 76%, 54%)
CMYKcmyk(54.3%, 76.1%, 0%, 45.9%)
CIE-LABlab(23.60, 40.66, -53.25)
CIE-LCHlch(23.60, 67.00, 307.37°)
OKLaboklab(35.95% 0.0513 -0.1531)
OKLCHoklch(35.95% 0.161 288.5)
XYZxyz(7.1799, 3.9791, 24.4296)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F218A #6C8A21
analogous
#21378A #3F218A #73218A
triadic
#3F218A #8A3F21 #218A3F
tetradic
#3F218A #8A2137 #6C8A21 #218A73
square
#3F218A #8A2137 #6C8A21 #218A73
split-complementary
#3F218A #8A7321 #378A21
monochromatic
#120927 #281559 #3F218A #562DBB #7650D5

Accessibility & contrast

On white

11.69
#3F218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3F218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F218A
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F218A#FFFFFF#000000##FFFFFF
##3F218A1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#223E54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f218a;
/* rgb */ color: rgb(63, 33, 138);
/* oklch */ color: oklch(36.0% 0.161 288.5);
Tailwind
colors: {
  custom: {
    50: '#7d60ad',
    500: '#3f218a',
    950: '#000000',
  },
}
SCSS
$custom: #3f218a;
$custom-light: #7d60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3f218a",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 257.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35952,
    "c": 0.16147,
    "h": 288.5
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#3F218A
secondary
#9AB94E
accent
#E543B6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F218A

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

Preview Lab → · Contrast checker → · Palette generator →

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