#5186E5#5186E5

#5186E5 is a light, vivid blue. Relative luminance 0.245; OKLCH L 62.9% C 0.154 H 261.1°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5186E5
RGBrgb(81, 134, 229)
HSLhsl(219, 74%, 61%)
HSVhsv(219, 65%, 90%)
CMYKcmyk(64.6%, 41.5%, 0%, 10.2%)
CIE-LABlab(56.54, 12.14, -53.47)
CIE-LCHlch(56.54, 54.83, 282.79°)
OKLaboklab(62.92% -0.0238 -0.1525)
OKLCHoklch(62.92% 0.154 261.1)
XYZxyz(26.0563, 24.4542, 77.4605)
Luminance0.2446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5186E5 #E5B051
analogous
#51D0E5 #5186E5 #6651E5
triadic
#5186E5 #E55186 #86E551
tetradic
#5186E5 #E551D0 #E5B051 #51E566
square
#5186E5 #E551D0 #E5B051 #51E566
split-complementary
#5186E5 #E56651 #D0E551
monochromatic
#184AA3 #2062D8 #5186E5 #86ABED #BBD0F5

Accessibility & contrast

On white

3.56
#5186E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#5186E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5186E5
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5186E5#FFFFFF#000000##000000
##5186E51.003.565.895.89
#FFFFFF3.561.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A8FE9
Deuteranopia (green-blind)
#4381E3
Tritanopia (blue-blind)
#009CAA
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5186e5;
/* rgb */ color: rgb(81, 134, 229);
/* oklch */ color: oklch(62.9% 0.154 261.1);
Tailwind
colors: {
  custom: {
    50: '#90a8ee',
    500: '#5186e5',
    950: '#000000',
  },
}
SCSS
$custom: #5186e5;
$custom-light: #90a8ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5186e5",
  "rgb": {
    "r": 81,
    "g": 134,
    "b": 229
  },
  "hsl": {
    "h": 218.514,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.62915,
    "c": 0.1543,
    "h": 261.1
  },
  "luminance": 0.24457
}

Semantic roles & 50–950 ramp

primary
#5186E5
secondary
#E5D1AD
accent
#8F0FD6
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5186E5

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

Preview Lab → · Contrast checker → · Palette generator →

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