#5186D7#5186D7

#5186D7 is a light, vivid blue. Relative luminance 0.237; OKLCH L 62.1% C 0.136 H 258.6°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5186D7
RGBrgb(81, 134, 215)
HSLhsl(216, 63%, 58%)
HSVhsv(216, 62%, 84%)
CMYKcmyk(62.3%, 37.7%, 0%, 15.7%)
CIE-LABlab(55.79, 7.38, -46.82)
CIE-LCHlch(55.79, 47.40, 278.95°)
OKLaboklab(62.09% -0.0267 -0.133)
OKLCHoklch(62.09% 0.136 258.6)
XYZxyz(24.1798, 23.7036, 67.5778)
Luminance0.2371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5186D7 #D7A251
analogous
#51C9D7 #5186D7 #5F51D7
triadic
#5186D7 #D75186 #86D751
tetradic
#5186D7 #D751C9 #D7A251 #51D75F
square
#5186D7 #D751C9 #D7A251 #51D75F
split-complementary
#5186D7 #D75F51 #C9D751
monochromatic
#204B8D #2C66BF #5186D7 #83A9E2 #B5CBEE

Accessibility & contrast

On white

3.66
#5186D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#5186D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5186D7
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5186D7#FFFFFF#000000##000000
##5186D71.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#638CDA
Deuteranopia (green-blind)
#5080D5
Tritanopia (blue-blind)
#0098A4
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5186d7;
/* rgb */ color: rgb(81, 134, 215);
/* oklch */ color: oklch(62.1% 0.136 258.6);
Tailwind
colors: {
  custom: {
    50: '#8da8e4',
    500: '#5186d7',
    950: '#000000',
  },
}
SCSS
$custom: #5186d7;
$custom-light: #8da8e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5186d7",
  "rgb": {
    "r": 81,
    "g": 134,
    "b": 215
  },
  "hsl": {
    "h": 216.269,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.6209,
    "c": 0.13564,
    "h": 258.6
  },
  "luminance": 0.23706
}

Semantic roles & 50–950 ramp

primary
#5186D7
secondary
#DDC7A7
accent
#A542E6
background
#F9FAFE
surface
#F1F4FC
border
#CBCED5
text
#0D0F15
muted
#7E7F84

Preview Lab

Preview with #5186D7

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

Preview Lab → · Contrast checker → · Palette generator →

#5186D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva