#3F21AE#3F21AE

#3F21AE is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.6% C 0.204 H 281.5°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#3F21AE
RGBrgb(63, 33, 174)
HSLhsl(253, 68%, 41%)
HSVhsv(253, 81%, 68%)
CMYKcmyk(63.8%, 81%, 0%, 31.8%)
CIE-LABlab(27.30, 51.23, -69.19)
CIE-LCHlch(27.30, 86.09, 306.52°)
OKLaboklab(39.64% 0.0407 -0.1996)
OKLCHoklch(39.64% 0.204 281.5)
XYZxyz(10.2313, 5.1997, 40.5007)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F21AE #90AE21
analogous
#2149AE #3F21AE #8521AE
triadic
#3F21AE #AE3F21 #21AE3F
tetradic
#3F21AE #AE2149 #90AE21 #21AE85
square
#3F21AE #AE2149 #90AE21 #21AE85
split-complementary
#3F21AE #AE8521 #49AE21
monochromatic
#1A0D47 #2C177B #3F21AE #5734D8 #8167E2

Accessibility & contrast

On white

10.29
#3F21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3F21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F21AE
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F21AE#FFFFFF#000000##FFFFFF
##3F21AE1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B2
Deuteranopia (green-blind)
#003BAC
Tritanopia (blue-blind)
#004C68
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3f21ae;
/* rgb */ color: rgb(63, 33, 174);
/* oklch */ color: oklch(39.6% 0.204 281.5);
Tailwind
colors: {
  custom: {
    50: '#8362c7',
    500: '#3f21ae',
    950: '#000000',
  },
}
SCSS
$custom: #3f21ae;
$custom-light: #8362c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f21ae",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 252.766,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39638,
    "c": 0.20374,
    "h": 281.5
  },
  "luminance": 0.052
}

Semantic roles & 50–950 ramp

primary
#3F21AE
secondary
#B2C863
accent
#EB3DC6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3F21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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