#3E51BA#3E51BA

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

Color values

HEX#3E51BA
RGBrgb(62, 81, 186)
HSLhsl(231, 50%, 49%)
HSVhsv(231, 67%, 73%)
CMYKcmyk(66.7%, 56.5%, 0%, 27.1%)
CIE-LABlab(38.64, 27.19, -57.72)
CIE-LCHlch(38.64, 63.81, 295.23°)
OKLaboklab(48.15% 0.0031 -0.1661)
OKLCHoklch(48.15% 0.166 271.1)
XYZxyz(13.7890, 10.4529, 47.7358)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E51BA #BAA73E
analogous
#3E8FBA #3E51BA #693EBA
triadic
#3E51BA #BA3E51 #51BA3E
tetradic
#3E51BA #BA3E8F #BAA73E #3EBA69
square
#3E51BA #BA3E8F #BAA73E #3EBA69
split-complementary
#3E51BA #BA693E #8FBA3E
monochromatic
#1F295E #2F3D8C #3E51BA #6878CD #96A1DC

Accessibility & contrast

On white

6.79
#3E51BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#3E51BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3E51BA
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E51BA#FFFFFF#000000##FFFFFF
##3E51BA1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.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: #3e51ba;
/* rgb */ color: rgb(62, 81, 186);
/* oklch */ color: oklch(48.2% 0.166 271.1);
Tailwind
colors: {
  custom: {
    50: '#8181cf',
    500: '#3e51ba',
    950: '#000000',
  },
}
SCSS
$custom: #3e51ba;
$custom-light: #8181cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e51ba",
  "rgb": {
    "r": 62,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 230.806,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48152,
    "c": 0.16611,
    "h": 271.1
  },
  "luminance": 0.10454
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E51BA

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

Preview Lab → · Contrast checker → · Palette generator →

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