#3F21B2#3F21B2

#3F21B2 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.1% C 0.208 H 280.9°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#3F21B2
RGBrgb(63, 33, 178)
HSLhsl(252, 69%, 41%)
HSVhsv(252, 81%, 70%)
CMYKcmyk(64.6%, 81.5%, 0%, 30.2%)
CIE-LABlab(27.73, 52.38, -70.86)
CIE-LCHlch(27.73, 88.12, 306.47°)
OKLaboklab(40.07% 0.0395 -0.2045)
OKLCHoklch(40.07% 0.208 280.9)
XYZxyz(10.6271, 5.3580, 42.5850)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F21B2 #94B221
analogous
#214CB2 #3F21B2 #8821B2
triadic
#3F21B2 #B23F21 #21B23F
tetradic
#3F21B2 #B2214C #94B221 #21B288
square
#3F21B2 #B2214C #94B221 #21B288
split-complementary
#3F21B2 #B28821 #4CB221
monochromatic
#1A0E4B #2D177E #3F21B2 #5836DA #836AE3

Accessibility & contrast

On white

10.14
#3F21B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#3F21B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F21B2
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F21B2#FFFFFF#000000##FFFFFF
##3F21B21.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B6
Deuteranopia (green-blind)
#003CAF
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3f21b2;
/* rgb */ color: rgb(63, 33, 178);
/* oklch */ color: oklch(40.1% 0.208 280.9);
Tailwind
colors: {
  custom: {
    50: '#8462ca',
    500: '#3f21b2',
    950: '#000000',
  },
}
SCSS
$custom: #3f21b2;
$custom-light: #8462ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3f21b2",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 252.414,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40067,
    "c": 0.20828,
    "h": 280.9
  },
  "luminance": 0.05359
}

Semantic roles & 50–950 ramp

primary
#3F21B2
secondary
#B5C966
accent
#EC3CC7
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3F21B2

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

Preview Lab → · Contrast checker → · Palette generator →

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