#5187DA#5187DA

#5187DA is a light, vivid blue. Relative luminance 0.241; OKLCH L 62.5% C 0.139 H 258.7°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#5187DA
RGBrgb(81, 135, 218)
HSLhsl(216, 65%, 59%)
HSVhsv(216, 63%, 85%)
CMYKcmyk(62.8%, 38.1%, 0%, 14.5%)
CIE-LABlab(56.22, 7.79, -47.82)
CIE-LCHlch(56.22, 48.45, 279.26°)
OKLaboklab(62.48% -0.0271 -0.1359)
OKLCHoklch(62.48% 0.139 258.7)
XYZxyz(24.7077, 24.1369, 69.6729)
Luminance0.2414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187DA #DAA451
analogous
#51CCDA #5187DA #5F51DA
triadic
#5187DA #DA5187 #87DA51
tetradic
#5187DA #DA51CC #DAA451 #51DA5F
square
#5187DA #DA51CC #DAA451 #51DA5F
split-complementary
#5187DA #DA5F51 #CCDA51
monochromatic
#1F4C92 #2A67C4 #5187DA #83AAE5 #B6CDEF

Accessibility & contrast

On white

3.60
#5187DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#5187DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187DA
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187DA#FFFFFF#000000##000000
##5187DA1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#638EDD
Deuteranopia (green-blind)
#4F81D8
Tritanopia (blue-blind)
#009AA6
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5187da;
/* rgb */ color: rgb(81, 135, 218);
/* oklch */ color: oklch(62.5% 0.139 258.7);
Tailwind
colors: {
  custom: {
    50: '#8ea9e6',
    500: '#5187da',
    950: '#000000',
  },
}
SCSS
$custom: #5187da;
$custom-light: #8ea9e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5187da",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 218
  },
  "hsl": {
    "h": 216.35,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.62479,
    "c": 0.13855,
    "h": 258.7
  },
  "luminance": 0.24139
}

Semantic roles & 50–950 ramp

primary
#5187DA
secondary
#DEC9A8
accent
#A640E8
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #5187DA

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

Preview Lab → · Contrast checker → · Palette generator →

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