#3F21CA#3F21CA

#3F21CA is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.7% C 0.235 H 277.8°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#3F21CA
RGBrgb(63, 33, 202)
HSLhsl(251, 72%, 46%)
HSVhsv(251, 84%, 79%)
CMYKcmyk(68.8%, 83.7%, 0%, 20.8%)
CIE-LABlab(30.42, 59.18, -80.59)
CIE-LCHlch(30.42, 99.99, 306.29°)
OKLaboklab(42.7% 0.0318 -0.2328)
OKLCHoklch(42.7% 0.235 277.8)
XYZxyz(13.2510, 6.4076, 56.4041)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F21CA #ACCA21
analogous
#2157CA #3F21CA #9321CA
triadic
#3F21CA #CA3F21 #21CA3F
tetradic
#3F21CA #CA2157 #ACCA21 #21CA93
square
#3F21CA #CA2157 #ACCA21 #21CA93
split-complementary
#3F21CA #CA9321 #57CA21
monochromatic
#1E1061 #2F1895 #3F21CA #6347E1 #8F7CEA

Accessibility & contrast

On white

9.20
#3F21CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#3F21CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F21CA
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F21CA#FFFFFF#000000##FFFFFF
##3F21CA1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ECE
Deuteranopia (green-blind)
#0041C7
Tritanopia (blue-blind)
#005879
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3f21ca;
/* rgb */ color: rgb(63, 33, 202);
/* oklch */ color: oklch(42.7% 0.235 277.8);
Tailwind
colors: {
  custom: {
    50: '#8964dc',
    500: '#3f21ca',
    950: '#000000',
  },
}
SCSS
$custom: #3f21ca;
$custom-light: #8964dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f21ca",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 250.651,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42699,
    "c": 0.23495,
    "h": 277.8
  },
  "luminance": 0.06409
}

Semantic roles & 50–950 ramp

primary
#3F21CA
secondary
#C1D275
accent
#EF39CE
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #3F21CA

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

Preview Lab → · Contrast checker → · Palette generator →

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