#5186E2#5186E2

#5186E2 is a light, vivid blue. Relative luminance 0.243; OKLCH L 62.7% C 0.150 H 260.7°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5186E2
RGBrgb(81, 134, 226)
HSLhsl(218, 71%, 60%)
HSVhsv(218, 64%, 89%)
CMYKcmyk(64.2%, 40.7%, 0%, 11.4%)
CIE-LABlab(56.38, 11.11, -52.06)
CIE-LCHlch(56.38, 53.23, 282.05°)
OKLaboklab(62.73% -0.0244 -0.1483)
OKLCHoklch(62.73% 0.15 260.7)
XYZxyz(25.6410, 24.2881, 75.2735)
Luminance0.2429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5186E2 #E2AD51
analogous
#51CFE2 #5186E2 #6451E2
triadic
#5186E2 #E25186 #86E251
tetradic
#5186E2 #E251CF #E2AD51 #51E264
square
#5186E2 #E251CF #E2AD51 #51E264
split-complementary
#5186E2 #E26451 #CFE251
monochromatic
#1A4B9E #2363D3 #5186E2 #85AAEB #BACFF3

Accessibility & contrast

On white

3.58
#5186E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#5186E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5186E2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5186E2#FFFFFF#000000##000000
##5186E21.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C8EE6
Deuteranopia (green-blind)
#4681E0
Tritanopia (blue-blind)
#009BA9
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5186e2;
/* rgb */ color: rgb(81, 134, 226);
/* oklch */ color: oklch(62.7% 0.150 260.7);
Tailwind
colors: {
  custom: {
    50: '#8fa8eb',
    500: '#5186e2',
    950: '#000000',
  },
}
SCSS
$custom: #5186e2;
$custom-light: #8fa8eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5186e2",
  "rgb": {
    "r": 81,
    "g": 134,
    "b": 226
  },
  "hsl": {
    "h": 218.069,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.62734,
    "c": 0.15031,
    "h": 260.7
  },
  "luminance": 0.24291
}

Semantic roles & 50–950 ramp

primary
#5186E2
secondary
#E3CFAC
accent
#8D12D3
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5186E2

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

Preview Lab → · Contrast checker → · Palette generator →

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