#3F21AC#3F21AC

#3F21AC is a dark, highly saturated violet. Relative luminance 0.051; OKLCH L 39.4% C 0.201 H 281.8°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#3F21AC
RGBrgb(63, 33, 172)
HSLhsl(253, 68%, 40%)
HSVhsv(253, 81%, 67%)
CMYKcmyk(63.4%, 80.8%, 0%, 32.5%)
CIE-LABlab(27.08, 50.65, -68.34)
CIE-LCHlch(27.08, 85.06, 306.54°)
OKLaboklab(39.42% 0.0414 -0.1972)
OKLCHoklch(39.42% 0.201 281.8)
XYZxyz(10.0378, 5.1223, 39.4815)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F21AC #8EAC21
analogous
#2148AC #3F21AC #8521AC
triadic
#3F21AC #AC3F21 #21AC3F
tetradic
#3F21AC #AC2148 #8EAC21 #21AC85
square
#3F21AC #AC2148 #8EAC21 #21AC85
split-complementary
#3F21AC #AC8521 #48AC21
monochromatic
#190D45 #2C1779 #3F21AC #5632D8 #8166E2

Accessibility & contrast

On white

10.37
#3F21AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3F21AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F21AC
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F21AC#FFFFFF#000000##FFFFFF
##3F21AC1.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B0
Deuteranopia (green-blind)
#003BAA
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3f21ac;
/* rgb */ color: rgb(63, 33, 172);
/* oklch */ color: oklch(39.4% 0.201 281.8);
Tailwind
colors: {
  custom: {
    50: '#8362c6',
    500: '#3f21ac',
    950: '#000000',
  },
}
SCSS
$custom: #3f21ac;
$custom-light: #8362c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f21ac",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 252.95,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39424,
    "c": 0.20146,
    "h": 281.8
  },
  "luminance": 0.05123
}

Semantic roles & 50–950 ramp

primary
#3F21AC
secondary
#B1C762
accent
#EB3DC5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3F21AC

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

Preview Lab → · Contrast checker → · Palette generator →

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