#3F51BA#3F51BA

#3F51BA is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.2% C 0.166 H 271.4°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#3F51BA
RGBrgb(63, 81, 186)
HSLhsl(231, 49%, 49%)
HSVhsv(231, 66%, 73%)
CMYKcmyk(66.1%, 56.5%, 0%, 27.1%)
CIE-LABlab(38.70, 27.35, -57.63)
CIE-LCHlch(38.70, 63.79, 295.39°)
OKLaboklab(48.21% 0.0041 -0.1658)
OKLCHoklch(48.21% 0.166 271.4)
XYZxyz(13.8523, 10.4855, 47.7388)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F51BA #BAA83F
analogous
#3F8FBA #3F51BA #6B3FBA
triadic
#3F51BA #BA3F51 #51BA3F
tetradic
#3F51BA #BA3F8F #BAA83F #3FBA6B
square
#3F51BA #BA3F8F #BAA83F #3FBA6B
split-complementary
#3F51BA #BA6B3F #8FBA3F
monochromatic
#20295F #303D8C #3F51BA #6A78CC #97A1DC

Accessibility & contrast

On white

6.78
#3F51BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#3F51BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F51BA
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F51BA#FFFFFF#000000##FFFFFF
##3F51BA1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3f51ba;
/* rgb */ color: rgb(63, 81, 186);
/* oklch */ color: oklch(48.2% 0.166 271.4);
Tailwind
colors: {
  custom: {
    50: '#8281cf',
    500: '#3f51ba',
    950: '#000000',
  },
}
SCSS
$custom: #3f51ba;
$custom-light: #8281cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f51ba",
  "rgb": {
    "r": 63,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 231.22,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4821,
    "c": 0.16583,
    "h": 271.4
  },
  "luminance": 0.10487
}

Semantic roles & 50–950 ramp

primary
#3F51BA
secondary
#C8BF8D
accent
#C54FD9
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #3F51BA

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

Preview Lab → · Contrast checker → · Palette generator →

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