#3F218C#3F218C

#3F218C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.164 H 288.1°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#3F218C
RGBrgb(63, 33, 140)
HSLhsl(257, 62%, 34%)
HSVhsv(257, 76%, 55%)
CMYKcmyk(55%, 76.4%, 0%, 45.1%)
CIE-LABlab(23.80, 41.26, -54.18)
CIE-LCHlch(23.80, 68.10, 307.29°)
OKLaboklab(36.15% 0.0508 -0.1558)
OKLCHoklch(36.15% 0.164 288.1)
XYZxyz(7.3260, 4.0376, 25.1992)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F218C #6E8C21
analogous
#21398C #3F218C #75218C
triadic
#3F218C #8C3F21 #218C3F
tetradic
#3F218C #8C2139 #6E8C21 #218C75
square
#3F218C #8C2139 #6E8C21 #218C75
split-complementary
#3F218C #8C7521 #398C21
monochromatic
#120A29 #29155A #3F218C #552DBE #7751D6

Accessibility & contrast

On white

11.62
#3F218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F218C
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F218C#FFFFFF#000000##FFFFFF
##3F218C1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#203F55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f218c;
/* rgb */ color: rgb(63, 33, 140);
/* oklch */ color: oklch(36.1% 0.164 288.1);
Tailwind
colors: {
  custom: {
    50: '#7d60af',
    500: '#3f218c',
    950: '#000000',
  },
}
SCSS
$custom: #3f218c;
$custom-light: #7d60af;
$custom-dark: #000000;
JSON
{
  "hex": "#3f218c",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 256.822,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36147,
    "c": 0.16389,
    "h": 288.1
  },
  "luminance": 0.04038
}

Semantic roles & 50–950 ramp

primary
#3F218C
secondary
#9CB94F
accent
#E543B7
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #3F218C

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

Preview Lab → · Contrast checker → · Palette generator →

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