#3F21C2#3F21C2

#3F21C2 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.8% C 0.226 H 278.7°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#3F21C2
RGBrgb(63, 33, 194)
HSLhsl(251, 71%, 45%)
HSVhsv(251, 83%, 76%)
CMYKcmyk(67.5%, 83%, 0%, 23.9%)
CIE-LABlab(29.51, 56.94, -77.41)
CIE-LCHlch(29.51, 96.09, 306.34°)
OKLaboklab(41.81% 0.0344 -0.2235)
OKLCHoklch(41.81% 0.226 278.7)
XYZxyz(12.3282, 6.0385, 51.5443)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F21C2 #A4C221
analogous
#2154C2 #3F21C2 #9021C2
triadic
#3F21C2 #C23F21 #21C23F
tetradic
#3F21C2 #C22154 #A4C221 #21C290
square
#3F21C2 #C22154 #A4C221 #21C290
split-complementary
#3F21C2 #C29021 #54C221
monochromatic
#1D0F59 #2E188E #3F21C2 #5F41DF #8B76E8

Accessibility & contrast

On white

9.51
#3F21C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3F21C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F21C2
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F21C2#FFFFFF#000000##FFFFFF
##3F21C21.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BC6
Deuteranopia (green-blind)
#003FBF
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3f21c2;
/* rgb */ color: rgb(63, 33, 194);
/* oklch */ color: oklch(41.8% 0.226 278.7);
Tailwind
colors: {
  custom: {
    50: '#8763d6',
    500: '#3f21c2',
    950: '#000000',
  },
}
SCSS
$custom: #3f21c2;
$custom-light: #8763d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f21c2",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 251.18,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41812,
    "c": 0.22617,
    "h": 278.7
  },
  "luminance": 0.0604
}

Semantic roles & 50–950 ramp

primary
#3F21C2
secondary
#BDCF70
accent
#EE3ACC
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #3F21C2

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

Preview Lab → · Contrast checker → · Palette generator →

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