#3F21B3#3F21B3

#3F21B3 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.2% C 0.209 H 280.8°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#3F21B3
RGBrgb(63, 33, 179)
HSLhsl(252, 69%, 42%)
HSVhsv(252, 82%, 70%)
CMYKcmyk(64.8%, 81.6%, 0%, 29.8%)
CIE-LABlab(27.84, 52.67, -71.28)
CIE-LCHlch(27.84, 88.63, 306.46°)
OKLaboklab(40.17% 0.0392 -0.2057)
OKLCHoklch(40.17% 0.209 280.8)
XYZxyz(10.7279, 5.3983, 43.1157)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F21B3 #95B321
analogous
#214CB3 #3F21B3 #8821B3
triadic
#3F21B3 #B33F21 #21B33F
tetradic
#3F21B3 #B3214C #95B321 #21B388
square
#3F21B3 #B3214C #95B321 #21B388
split-complementary
#3F21B3 #B38821 #4CB321
monochromatic
#1B0E4C #2D177F #3F21B3 #5937DA #846BE4

Accessibility & contrast

On white

10.10
#3F21B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#3F21B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F21B3
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F21B3#FFFFFF#000000##FFFFFF
##3F21B31.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B7
Deuteranopia (green-blind)
#003CB0
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3f21b3;
/* rgb */ color: rgb(63, 33, 179);
/* oklch */ color: oklch(40.2% 0.209 280.8);
Tailwind
colors: {
  custom: {
    50: '#8462cb',
    500: '#3f21b3',
    950: '#000000',
  },
}
SCSS
$custom: #3f21b3;
$custom-light: #8462cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3f21b3",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 252.329,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40174,
    "c": 0.20941,
    "h": 280.8
  },
  "luminance": 0.05399
}

Semantic roles & 50–950 ramp

primary
#3F21B3
secondary
#B5CA66
accent
#EC3CC8
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3F21B3

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

Preview Lab → · Contrast checker → · Palette generator →

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