#3F218E#3F218E

#3F218E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.166 H 287.6°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#3F218E
RGBrgb(63, 33, 142)
HSLhsl(257, 62%, 34%)
HSVhsv(257, 77%, 56%)
CMYKcmyk(55.6%, 76.8%, 0%, 44.3%)
CIE-LABlab(23.99, 41.85, -55.10)
CIE-LCHlch(23.99, 69.19, 307.21°)
OKLaboklab(36.34% 0.0503 -0.1585)
OKLCHoklch(36.34% 0.166 287.6)
XYZxyz(7.4748, 4.0971, 25.9829)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F218E #708E21
analogous
#21398E #3F218E #76218E
triadic
#3F218E #8E3F21 #218E3F
tetradic
#3F218E #8E2139 #708E21 #218E76
square
#3F218E #8E2139 #708E21 #218E76
split-complementary
#3F218E #8E7621 #398E21
monochromatic
#130A2B #29155C #3F218E #552DC0 #7752D7

Accessibility & contrast

On white

11.54
#3F218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3F218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F218E
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F218E#FFFFFF#000000##FFFFFF
##3F218E1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#1E3F56
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f218e;
/* rgb */ color: rgb(63, 33, 142);
/* oklch */ color: oklch(36.3% 0.166 287.6);
Tailwind
colors: {
  custom: {
    50: '#7d60b0',
    500: '#3f218e',
    950: '#000000',
  },
}
SCSS
$custom: #3f218e;
$custom-light: #7d60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f218e",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 256.514,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36343,
    "c": 0.1663,
    "h": 287.6
  },
  "luminance": 0.04097
}

Semantic roles & 50–950 ramp

primary
#3F218E
secondary
#9DBA50
accent
#E542B9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F218E

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

Preview Lab → · Contrast checker → · Palette generator →

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