#5186D5#5186D5

#5186D5 is a mid, vivid blue. Relative luminance 0.236; OKLCH L 62.0% C 0.133 H 258.2°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#5186D5
RGBrgb(81, 134, 213)
HSLhsl(216, 61%, 58%)
HSVhsv(216, 62%, 84%)
CMYKcmyk(62%, 37.1%, 0%, 16.5%)
CIE-LABlab(55.69, 6.70, -45.86)
CIE-LCHlch(55.69, 46.35, 278.32°)
OKLaboklab(61.98% -0.0272 -0.1302)
OKLCHoklch(61.98% 0.133 258.2)
XYZxyz(23.9244, 23.6014, 66.2326)
Luminance0.2360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5186D5 #D5A051
analogous
#51C8D5 #5186D5 #5E51D5
triadic
#5186D5 #D55186 #86D551
tetradic
#5186D5 #D551C8 #D5A051 #51D55E
square
#5186D5 #D551C8 #D5A051 #51D55E
split-complementary
#5186D5 #D55E51 #C8D551
monochromatic
#214B8A #2D66BC #5186D5 #82A8E1 #B4CBED

Accessibility & contrast

On white

3.67
#5186D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#5186D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5186D5
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5186D5#FFFFFF#000000##000000
##5186D51.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#648CD8
Deuteranopia (green-blind)
#5280D3
Tritanopia (blue-blind)
#0098A3
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5186d5;
/* rgb */ color: rgb(81, 134, 213);
/* oklch */ color: oklch(62.0% 0.133 258.2);
Tailwind
colors: {
  custom: {
    50: '#8da8e2',
    500: '#5186d5',
    950: '#000000',
  },
}
SCSS
$custom: #5186d5;
$custom-light: #8da8e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5186d5",
  "rgb": {
    "r": 81,
    "g": 134,
    "b": 213
  },
  "hsl": {
    "h": 215.909,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61976,
    "c": 0.13298,
    "h": 258.2
  },
  "luminance": 0.23604
}

Semantic roles & 50–950 ramp

primary
#5186D5
secondary
#DBC6A6
accent
#A444E4
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5186D5

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

Preview Lab → · Contrast checker → · Palette generator →

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