#5186D3#5186D3

#5186D3 is a mid, vivid blue. Relative luminance 0.235; OKLCH L 61.9% C 0.130 H 257.7°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#5186D3
RGBrgb(81, 134, 211)
HSLhsl(216, 60%, 57%)
HSVhsv(216, 62%, 83%)
CMYKcmyk(61.6%, 36.5%, 0%, 17.3%)
CIE-LABlab(55.58, 6.03, -44.90)
CIE-LCHlch(55.58, 45.30, 277.65°)
OKLaboklab(61.86% -0.0277 -0.1273)
OKLCHoklch(61.86% 0.13 257.7)
XYZxyz(23.6721, 23.5005, 64.9039)
Luminance0.2350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5186D3 #D39E51
analogous
#51C7D3 #5186D3 #5D51D3
triadic
#5186D3 #D35186 #86D351
tetradic
#5186D3 #D351C7 #D39E51 #51D35D
square
#5186D3 #D351C7 #D39E51 #51D35D
split-complementary
#5186D3 #D35D51 #C7D351
monochromatic
#224B87 #2F67B8 #5186D3 #82A8DF #B3CAEC

Accessibility & contrast

On white

3.68
#5186D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#5186D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5186D3
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5186D3#FFFFFF#000000##000000
##5186D31.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#658CD6
Deuteranopia (green-blind)
#5380D1
Tritanopia (blue-blind)
#0097A2
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5186d3;
/* rgb */ color: rgb(81, 134, 211);
/* oklch */ color: oklch(61.9% 0.130 257.7);
Tailwind
colors: {
  custom: {
    50: '#8da8e1',
    500: '#5186d3',
    950: '#000000',
  },
}
SCSS
$custom: #5186d3;
$custom-light: #8da8e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5186d3",
  "rgb": {
    "r": 81,
    "g": 134,
    "b": 211
  },
  "hsl": {
    "h": 215.538,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61863,
    "c": 0.13032,
    "h": 257.7
  },
  "luminance": 0.23503
}

Semantic roles & 50–950 ramp

primary
#5186D3
secondary
#DAC5A6
accent
#A245E3
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5186D3

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

Preview Lab → · Contrast checker → · Palette generator →

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