#3F218B#3F218B

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

Color values

HEX#3F218B
RGBrgb(63, 33, 139)
HSLhsl(257, 62%, 34%)
HSVhsv(257, 76%, 55%)
CMYKcmyk(54.7%, 76.3%, 0%, 45.5%)
CIE-LABlab(23.70, 40.96, -53.72)
CIE-LCHlch(23.70, 67.55, 307.33°)
OKLaboklab(36.05% 0.0511 -0.1544)
OKLCHoklch(36.05% 0.163 288.3)
XYZxyz(7.2526, 4.0082, 24.8126)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F218B #6D8B21
analogous
#21388B #3F218B #74218B
triadic
#3F218B #8B3F21 #218B3F
tetradic
#3F218B #8B2138 #6D8B21 #218B74
square
#3F218B #8B2138 #6D8B21 #218B74
split-complementary
#3F218B #8B7421 #388B21
monochromatic
#120A28 #29155A #3F218B #552DBC #7651D6

Accessibility & contrast

On white

11.66
#3F218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F218B
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F218B#FFFFFF#000000##FFFFFF
##3F218B1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#213E54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f218b;
/* rgb */ color: rgb(63, 33, 139);
/* oklch */ color: oklch(36.0% 0.163 288.3);
Tailwind
colors: {
  custom: {
    50: '#7d60ae',
    500: '#3f218b',
    950: '#000000',
  },
}
SCSS
$custom: #3f218b;
$custom-light: #7d60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3f218b",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 256.981,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3605,
    "c": 0.16268,
    "h": 288.3
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#3F218B
secondary
#9BB94F
accent
#E543B7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #3F218B

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

Preview Lab → · Contrast checker → · Palette generator →

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