#5187D9#5187D9

#5187D9 is a light, vivid blue. Relative luminance 0.241; OKLCH L 62.4% C 0.137 H 258.5°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5187D9
RGBrgb(81, 135, 217)
HSLhsl(216, 64%, 58%)
HSVhsv(216, 63%, 85%)
CMYKcmyk(62.7%, 37.8%, 0%, 14.9%)
CIE-LABlab(56.17, 7.45, -47.34)
CIE-LCHlch(56.17, 47.92, 278.95°)
OKLaboklab(62.42% -0.0273 -0.1345)
OKLCHoklch(62.42% 0.137 258.5)
XYZxyz(24.5772, 24.0847, 68.9858)
Luminance0.2409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187D9 #D9A351
analogous
#51CBD9 #5187D9 #5F51D9
triadic
#5187D9 #D95187 #87D951
tetradic
#5187D9 #D951CB #D9A351 #51D95F
square
#5187D9 #D951CB #D9A351 #51D95F
split-complementary
#5187D9 #D95F51 #CBD951
monochromatic
#1F4C90 #2A67C2 #5187D9 #83AAE4 #B5CCEF

Accessibility & contrast

On white

3.61
#5187D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#5187D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187D9
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187D9#FFFFFF#000000##000000
##5187D91.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#638EDC
Deuteranopia (green-blind)
#5081D7
Tritanopia (blue-blind)
#009AA5
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5187d9;
/* rgb */ color: rgb(81, 135, 217);
/* oklch */ color: oklch(62.4% 0.137 258.5);
Tailwind
colors: {
  custom: {
    50: '#8ea9e5',
    500: '#5187d9',
    950: '#000000',
  },
}
SCSS
$custom: #5187d9;
$custom-light: #8ea9e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5187d9",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 217
  },
  "hsl": {
    "h": 216.176,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.62422,
    "c": 0.13722,
    "h": 258.5
  },
  "luminance": 0.24087
}

Semantic roles & 50–950 ramp

primary
#5187D9
secondary
#DEC8A8
accent
#A541E7
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #5187D9

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

Preview Lab → · Contrast checker → · Palette generator →

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