#3F218D#3F218D

#3F218D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.165 H 287.8°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#3F218D
RGBrgb(63, 33, 141)
HSLhsl(257, 62%, 34%)
HSVhsv(257, 77%, 55%)
CMYKcmyk(55.3%, 76.6%, 0%, 44.7%)
CIE-LABlab(23.89, 41.55, -54.64)
CIE-LCHlch(23.89, 68.65, 307.25°)
OKLaboklab(36.24% 0.0506 -0.1572)
OKLCHoklch(36.24% 0.165 287.8)
XYZxyz(7.4001, 4.0672, 25.5893)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F218D #6F8D21
analogous
#21398D #3F218D #75218D
triadic
#3F218D #8D3F21 #218D3F
tetradic
#3F218D #8D2139 #6F8D21 #218D75
square
#3F218D #8D2139 #6F8D21 #218D75
split-complementary
#3F218D #8D7521 #398D21
monochromatic
#130A2A #29155B #3F218D #552DBF #7752D6

Accessibility & contrast

On white

11.58
#3F218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3F218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F218D
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F218D#FFFFFF#000000##FFFFFF
##3F218D1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#1F3F55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f218d;
/* rgb */ color: rgb(63, 33, 141);
/* oklch */ color: oklch(36.2% 0.165 287.8);
Tailwind
colors: {
  custom: {
    50: '#7d60af',
    500: '#3f218d',
    950: '#000000',
  },
}
SCSS
$custom: #3f218d;
$custom-light: #7d60af;
$custom-dark: #000000;
JSON
{
  "hex": "#3f218d",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 256.667,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36245,
    "c": 0.1651,
    "h": 287.8
  },
  "luminance": 0.04068
}

Semantic roles & 50–950 ramp

primary
#3F218D
secondary
#9CBA50
accent
#E543B8
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F218D

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

Preview Lab → · Contrast checker → · Palette generator →

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