#5187DE#5187DE

#5187DE is a light, vivid blue. Relative luminance 0.244; OKLCH L 62.7% C 0.144 H 259.5°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5187DE
RGBrgb(81, 135, 222)
HSLhsl(217, 68%, 59%)
HSVhsv(217, 64%, 87%)
CMYKcmyk(63.5%, 39.2%, 0%, 12.9%)
CIE-LABlab(56.44, 9.15, -49.73)
CIE-LCHlch(56.44, 50.56, 280.42°)
OKLaboklab(62.71% -0.0262 -0.1415)
OKLCHoklch(62.71% 0.144 259.5)
XYZxyz(25.2374, 24.3488, 72.4629)
Luminance0.2435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187DE #DEA851
analogous
#51CEDE #5187DE #6251DE
triadic
#5187DE #DE5187 #87DE51
tetradic
#5187DE #DE51CE #DEA851 #51DE62
square
#5187DE #DE51CE #DEA851 #51DE62
split-complementary
#5187DE #DE6251 #CEDE51
monochromatic
#1D4C98 #2766CB #5187DE #84AAE8 #B8CEF2

Accessibility & contrast

On white

3.58
#5187DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#5187DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187DE
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187DE#FFFFFF#000000##000000
##5187DE1.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#608EE1
Deuteranopia (green-blind)
#4C81DC
Tritanopia (blue-blind)
#009BA8
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5187de;
/* rgb */ color: rgb(81, 135, 222);
/* oklch */ color: oklch(62.7% 0.144 259.5);
Tailwind
colors: {
  custom: {
    50: '#8fa9e9',
    500: '#5187de',
    950: '#000000',
  },
}
SCSS
$custom: #5187de;
$custom-light: #8fa9e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5187de",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 222
  },
  "hsl": {
    "h": 217.021,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.62711,
    "c": 0.14387,
    "h": 259.5
  },
  "luminance": 0.24351
}

Semantic roles & 50–950 ramp

primary
#5187DE
secondary
#E1CCAA
accent
#A83DEB
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #5187DE

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

Preview Lab → · Contrast checker → · Palette generator →

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