#5187EF#5187EF

#5187EF is a light, vivid blue. Relative luminance 0.253; OKLCH L 63.7% C 0.166 H 262.1°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5187EF
RGBrgb(81, 135, 239)
HSLhsl(219, 83%, 63%)
HSVhsv(219, 66%, 94%)
CMYKcmyk(66.1%, 43.5%, 0%, 6.3%)
CIE-LABlab(57.37, 14.97, -57.70)
CIE-LCHlch(57.37, 59.61, 284.54°)
OKLaboklab(63.74% -0.0229 -0.1649)
OKLCHoklch(63.74% 0.166 262.1)
XYZxyz(27.6318, 25.3066, 85.0731)
Luminance0.2531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187EF #EFB951
analogous
#51D6EF #5187EF #6A51EF
triadic
#5187EF #EF5187 #87EF51
tetradic
#5187EF #EF51D6 #EFB951 #51EF6A
square
#5187EF #EF51D6 #EFB951 #51EF6A
split-complementary
#5187EF #EF6A51 #D6EF51
monochromatic
#1149B5 #1960EA #5187EF #89AEF4 #C1D4F9

Accessibility & contrast

On white

3.46
#5187EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#5187EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187EF
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187EF#FFFFFF#000000##000000
##5187EF1.003.466.066.06
#FFFFFF3.461.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5592F3
Deuteranopia (green-blind)
#3A83ED
Tritanopia (blue-blind)
#009FAF
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #5187ef;
/* rgb */ color: rgb(81, 135, 239);
/* oklch */ color: oklch(63.7% 0.166 262.1);
Tailwind
colors: {
  custom: {
    50: '#91a9f5',
    500: '#5187ef',
    950: '#000000',
  },
}
SCSS
$custom: #5187ef;
$custom-light: #91a9f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5187ef",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 219.494,
    "s": 83.158,
    "l": 62.745
  },
  "oklch": {
    "l": 0.6374,
    "c": 0.16645,
    "h": 262.1
  },
  "luminance": 0.25309
}

Semantic roles & 50–950 ramp

primary
#5187EF
secondary
#EAD7B1
accent
#9506E0
background
#F9FAFF
surface
#F2F4FE
border
#CCCED6
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5187EF

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

Preview Lab → · Contrast checker → · Palette generator →

#5187EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva