#3F51CF#3F51CF

#3F51CF is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.9% C 0.194 H 271.2°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#3F51CF
RGBrgb(63, 81, 207)
HSLhsl(233, 60%, 53%)
HSVhsv(233, 70%, 81%)
CMYKcmyk(69.6%, 60.9%, 0%, 18.8%)
CIE-LABlab(40.32, 34.75, -67.20)
CIE-LCHlch(40.32, 75.66, 297.35°)
OKLaboklab(49.92% 0.0042 -0.1939)
OKLCHoklch(49.92% 0.194 271.2)
XYZxyz(16.2510, 11.4450, 60.3721)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F51CF #CFBD3F
analogous
#3F99CF #3F51CF #753FCF
triadic
#3F51CF #CF3F51 #51CF3F
tetradic
#3F51CF #CF3F99 #CFBD3F #3FCF75
square
#3F51CF #CF3F99 #CFBD3F #3FCF75
split-complementary
#3F51CF #CF753F #99CF3F
monochromatic
#1E2976 #2A39A7 #3F51CF #707DDB #A1AAE7

Accessibility & contrast

On white

6.38
#3F51CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#3F51CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F51CF
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F51CF#FFFFFF#000000##FFFFFF
##3F51CF1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#0059CD
Tritanopia (blue-blind)
#007188
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3f51cf;
/* rgb */ color: rgb(63, 81, 207);
/* oklch */ color: oklch(49.9% 0.194 271.2);
Tailwind
colors: {
  custom: {
    50: '#8681df',
    500: '#3f51cf',
    950: '#000000',
  },
}
SCSS
$custom: #3f51cf;
$custom-light: #8681df;
$custom-dark: #000000;
JSON
{
  "hex": "#3f51cf",
  "rgb": {
    "r": 63,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 232.5,
    "s": 60,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49922,
    "c": 0.19396,
    "h": 271.2
  },
  "luminance": 0.11447
}

Semantic roles & 50–950 ramp

primary
#3F51CF
secondary
#D4CC96
accent
#CF45E3
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #3F51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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