#3E51BF#3E51BF

#3E51BF is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.5% C 0.173 H 271.1°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#3E51BF
RGBrgb(62, 81, 191)
HSLhsl(231, 51%, 50%)
HSVhsv(231, 68%, 75%)
CMYKcmyk(67.5%, 57.6%, 0%, 25.1%)
CIE-LABlab(39.02, 28.97, -60.04)
CIE-LCHlch(39.02, 66.67, 295.76°)
OKLaboklab(48.55% 0.0032 -0.1729)
OKLCHoklch(48.55% 0.173 271.1)
XYZxyz(14.3298, 10.6692, 50.5843)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E51BF #BFAC3E
analogous
#3E91BF #3E51BF #6C3EBF
triadic
#3E51BF #BF3E51 #51BF3E
tetradic
#3E51BF #BF3E91 #BFAC3E #3EBF6C
square
#3E51BF #BF3E91 #BFAC3E #3EBF6C
split-complementary
#3E51BF #BF6C3E #91BF3E
monochromatic
#202A63 #2F3D91 #3E51BF #6B7ACF #99A3DE

Accessibility & contrast

On white

6.70
#3E51BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#3E51BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3E51BF
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E51BF#FFFFFF#000000##FFFFFF
##3E51BF1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#0056BD
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3e51bf;
/* rgb */ color: rgb(62, 81, 191);
/* oklch */ color: oklch(48.5% 0.173 271.1);
Tailwind
colors: {
  custom: {
    50: '#8281d3',
    500: '#3e51bf',
    950: '#000000',
  },
}
SCSS
$custom: #3e51bf;
$custom-light: #8281d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e51bf",
  "rgb": {
    "r": 62,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 231.163,
    "s": 50.988,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4855,
    "c": 0.17293,
    "h": 271.1
  },
  "luminance": 0.10671
}

Semantic roles & 50–950 ramp

primary
#3E51BF
secondary
#CAC18F
accent
#C64DDA
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3E51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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