#3F21AA#3F21AA

#3F21AA is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.199 H 282.2°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#3F21AA
RGBrgb(63, 33, 170)
HSLhsl(253, 67%, 40%)
HSVhsv(253, 81%, 67%)
CMYKcmyk(62.9%, 80.6%, 0%, 33.3%)
CIE-LABlab(26.87, 50.07, -67.49)
CIE-LCHlch(26.87, 84.04, 306.57°)
OKLaboklab(39.21% 0.042 -0.1947)
OKLCHoklch(39.21% 0.199 282.2)
XYZxyz(9.8472, 5.0460, 38.4775)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F21AA #8CAA21
analogous
#2147AA #3F21AA #8421AA
triadic
#3F21AA #AA3F21 #21AA3F
tetradic
#3F21AA #AA2147 #8CAA21 #21AA84
square
#3F21AA #AA2147 #8CAA21 #21AA84
split-complementary
#3F21AA #AA8421 #47AA21
monochromatic
#190D43 #2C1777 #3F21AA #5531D7 #8064E1

Accessibility & contrast

On white

10.45
#3F21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#3F21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F21AA
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F21AA#FFFFFF#000000##FFFFFF
##3F21AA1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AE
Deuteranopia (green-blind)
#003BA8
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3f21aa;
/* rgb */ color: rgb(63, 33, 170);
/* oklch */ color: oklch(39.2% 0.199 282.2);
Tailwind
colors: {
  custom: {
    50: '#8261c5',
    500: '#3f21aa',
    950: '#000000',
  },
}
SCSS
$custom: #3f21aa;
$custom-light: #8261c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f21aa",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 253.139,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39212,
    "c": 0.19918,
    "h": 282.2
  },
  "luminance": 0.05047
}

Semantic roles & 50–950 ramp

primary
#3F21AA
secondary
#B0C661
accent
#EA3DC4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3F21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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