#5186D2#5186D2

#5186D2 is a mid, vivid blue. Relative luminance 0.235; OKLCH L 61.8% C 0.129 H 257.5°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#5186D2
RGBrgb(81, 134, 210)
HSLhsl(215, 59%, 57%)
HSVhsv(215, 61%, 82%)
CMYKcmyk(61.4%, 36.2%, 0%, 17.6%)
CIE-LABlab(55.53, 5.70, -44.41)
CIE-LCHlch(55.53, 44.78, 277.31°)
OKLaboklab(61.81% -0.0279 -0.1259)
OKLCHoklch(61.81% 0.129 257.5)
XYZxyz(23.5472, 23.4505, 64.2458)
Luminance0.2345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5186D2 #D29D51
analogous
#51C6D2 #5186D2 #5D51D2
triadic
#5186D2 #D25186 #86D251
tetradic
#5186D2 #D251C6 #D29D51 #51D25D
square
#5186D2 #D251C6 #D29D51 #51D25D
split-complementary
#5186D2 #D25D51 #C6D251
monochromatic
#234B86 #2F67B7 #5186D2 #82A8DF #B2CAEB

Accessibility & contrast

On white

3.69
#5186D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#5186D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5186D2
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5186D2#FFFFFF#000000##000000
##5186D21.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#658CD5
Deuteranopia (green-blind)
#547FD0
Tritanopia (blue-blind)
#0097A2
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5186d2;
/* rgb */ color: rgb(81, 134, 210);
/* oklch */ color: oklch(61.8% 0.129 257.5);
Tailwind
colors: {
  custom: {
    50: '#8da8e0',
    500: '#5186d2',
    950: '#000000',
  },
}
SCSS
$custom: #5186d2;
$custom-light: #8da8e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5186d2",
  "rgb": {
    "r": 81,
    "g": 134,
    "b": 210
  },
  "hsl": {
    "h": 215.349,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61807,
    "c": 0.12899,
    "h": 257.5
  },
  "luminance": 0.23453
}

Semantic roles & 50–950 ramp

primary
#5186D2
secondary
#DAC4A5
accent
#A246E2
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5186D2

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

Preview Lab → · Contrast checker → · Palette generator →

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