#5186F2#5186F2

#5186F2 is a light, vivid blue. Relative luminance 0.252; OKLCH L 63.7% C 0.172 H 262.8°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5186F2
RGBrgb(81, 134, 242)
HSLhsl(220, 86%, 63%)
HSVhsv(220, 67%, 95%)
CMYKcmyk(66.5%, 44.6%, 0%, 5.1%)
CIE-LABlab(57.28, 16.60, -59.52)
CIE-LCHlch(57.28, 61.79, 285.59°)
OKLaboklab(63.72% -0.0214 -0.1702)
OKLCHoklch(63.72% 0.172 262.8)
XYZxyz(27.9398, 25.2076, 87.3803)
Luminance0.2521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5186F2 #F2BD51
analogous
#51D7F2 #5186F2 #6C51F2
triadic
#5186F2 #F25186 #86F251
tetradic
#5186F2 #F251D7 #F2BD51 #51F26C
square
#5186F2 #F251D7 #F2BD51 #51F26C
split-complementary
#5186F2 #F26C51 #D7F251
monochromatic
#0E47BB #185EEE #5186F2 #8AAEF6 #C3D5FB

Accessibility & contrast

On white

3.48
#5186F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#5186F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5186F2
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5186F2#FFFFFF#000000##000000
##5186F21.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5191F6
Deuteranopia (green-blind)
#3383F0
Tritanopia (blue-blind)
#009FB0
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5186f2;
/* rgb */ color: rgb(81, 134, 242);
/* oklch */ color: oklch(63.7% 0.172 262.8);
Tailwind
colors: {
  custom: {
    50: '#92a8f7',
    500: '#5186f2',
    950: '#000000',
  },
}
SCSS
$custom: #5186f2;
$custom-light: #92a8f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5186f2",
  "rgb": {
    "r": 81,
    "g": 134,
    "b": 242
  },
  "hsl": {
    "h": 220.248,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.63722,
    "c": 0.17157,
    "h": 262.8
  },
  "luminance": 0.2521
}

Semantic roles & 50–950 ramp

primary
#5186F2
secondary
#ECD9B3
accent
#9903E3
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5186F2

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

Preview Lab → · Contrast checker → · Palette generator →

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