#3E51BB#3E51BB

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

Color values

HEX#3E51BB
RGBrgb(62, 81, 187)
HSLhsl(231, 50%, 49%)
HSVhsv(231, 67%, 73%)
CMYKcmyk(66.8%, 56.7%, 0%, 26.7%)
CIE-LABlab(38.72, 27.55, -58.19)
CIE-LCHlch(38.72, 64.38, 295.33°)
OKLaboklab(48.23% 0.0031 -0.1674)
OKLCHoklch(48.23% 0.167 271.1)
XYZxyz(13.8956, 10.4956, 48.2976)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E51BB #BBA83E
analogous
#3E90BB #3E51BB #6A3EBB
triadic
#3E51BB #BB3E51 #51BB3E
tetradic
#3E51BB #BB3E90 #BBA83E #3EBB6A
square
#3E51BB #BB3E90 #BBA83E #3EBB6A
split-complementary
#3E51BB #BB6A3E #90BB3E
monochromatic
#20295F #2F3D8D #3E51BB #6978CD #97A1DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E51BB#FFFFFF#000000##FFFFFF
##3E51BB1.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)
#0061BF
Deuteranopia (green-blind)
#0056B9
Tritanopia (blue-blind)
#006B7E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3e51bb;
/* rgb */ color: rgb(62, 81, 187);
/* oklch */ color: oklch(48.2% 0.167 271.1);
Tailwind
colors: {
  custom: {
    50: '#8281d0',
    500: '#3e51bb',
    950: '#000000',
  },
}
SCSS
$custom: #3e51bb;
$custom-light: #8281d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e51bb",
  "rgb": {
    "r": 62,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 230.88,
    "s": 50.201,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48231,
    "c": 0.16748,
    "h": 271.1
  },
  "luminance": 0.10497
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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