#3F21B4#3F21B4

#3F21B4 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.3% C 0.211 H 280.6°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#3F21B4
RGBrgb(63, 33, 180)
HSLhsl(252, 69%, 42%)
HSVhsv(252, 82%, 71%)
CMYKcmyk(65%, 81.7%, 0%, 29.4%)
CIE-LABlab(27.95, 52.96, -71.69)
CIE-LCHlch(27.95, 89.13, 306.45°)
OKLaboklab(40.28% 0.0388 -0.2069)
OKLCHoklch(40.28% 0.211 280.6)
XYZxyz(10.8294, 5.4389, 43.6503)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F21B4 #96B421
analogous
#214DB4 #3F21B4 #8921B4
triadic
#3F21B4 #B43F21 #21B43F
tetradic
#3F21B4 #B4214D #96B421 #21B489
square
#3F21B4 #B4214D #96B421 #21B489
split-complementary
#3F21B4 #B48921 #4DB421
monochromatic
#1B0E4D #2D1880 #3F21B4 #5938DA #846BE4

Accessibility & contrast

On white

10.06
#3F21B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#3F21B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F21B4
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F21B4#FFFFFF#000000##FFFFFF
##3F21B41.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B8
Deuteranopia (green-blind)
#003CB1
Tritanopia (blue-blind)
#004F6C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3f21b4;
/* rgb */ color: rgb(63, 33, 180);
/* oklch */ color: oklch(40.3% 0.211 280.6);
Tailwind
colors: {
  custom: {
    50: '#8462cc',
    500: '#3f21b4',
    950: '#000000',
  },
}
SCSS
$custom: #3f21b4;
$custom-light: #8462cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f21b4",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 180
  },
  "hsl": {
    "h": 252.245,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40282,
    "c": 0.21054,
    "h": 280.6
  },
  "luminance": 0.0544
}

Semantic roles & 50–950 ramp

primary
#3F21B4
secondary
#B6CA67
accent
#EC3CC8
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #3F21B4

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

Preview Lab → · Contrast checker → · Palette generator →

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