#5187E8#5187E8

#5187E8 is a light, vivid blue. Relative luminance 0.249; OKLCH L 63.3% C 0.157 H 261.2°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5187E8
RGBrgb(81, 135, 232)
HSLhsl(219, 77%, 61%)
HSVhsv(219, 65%, 91%)
CMYKcmyk(65.1%, 41.8%, 0%, 9%)
CIE-LABlab(56.98, 12.56, -54.44)
CIE-LCHlch(56.98, 55.87, 282.99°)
OKLaboklab(63.31% -0.0241 -0.1553)
OKLCHoklch(63.31% 0.157 261.2)
XYZxyz(26.6176, 24.9009, 79.7319)
Luminance0.2490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187E8 #E8B251
analogous
#51D3E8 #5187E8 #6751E8
triadic
#5187E8 #E85187 #87E851
tetradic
#5187E8 #E851D3 #E8B251 #51E867
square
#5187E8 #E851D3 #E8B251 #51E867
split-complementary
#5187E8 #E86751 #D3E851
monochromatic
#164AA8 #1D62DE #5187E8 #87ACEF #BDD2F6

Accessibility & contrast

On white

3.51
#5187E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#5187E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187E8
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187E8#FFFFFF#000000##000000
##5187E81.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A90EC
Deuteranopia (green-blind)
#4282E6
Tritanopia (blue-blind)
#009DAC
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5187e8;
/* rgb */ color: rgb(81, 135, 232);
/* oklch */ color: oklch(63.3% 0.157 261.2);
Tailwind
colors: {
  custom: {
    50: '#90a9f0',
    500: '#5187e8',
    950: '#000000',
  },
}
SCSS
$custom: #5187e8;
$custom-light: #90a9f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5187e8",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 232
  },
  "hsl": {
    "h": 218.543,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.63308,
    "c": 0.15717,
    "h": 261.2
  },
  "luminance": 0.24903
}

Semantic roles & 50–950 ramp

primary
#5187E8
secondary
#E7D2AE
accent
#900DD9
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5187E8

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

Preview Lab → · Contrast checker → · Palette generator →

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