#5186F1#5186F1

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

Color values

HEX#5186F1
RGBrgb(81, 134, 241)
HSLhsl(220, 85%, 63%)
HSVhsv(220, 66%, 95%)
CMYKcmyk(66.4%, 44.4%, 0%, 5.5%)
CIE-LABlab(57.22, 16.26, -59.06)
CIE-LCHlch(57.22, 61.25, 285.39°)
OKLaboklab(63.66% -0.0216 -0.1689)
OKLCHoklch(63.66% 0.17 262.7)
XYZxyz(27.7900, 25.1477, 86.5915)
Luminance0.2515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5186F1 #F1BC51
analogous
#51D6F1 #5186F1 #6C51F1
triadic
#5186F1 #F15186 #86F151
tetradic
#5186F1 #F151D6 #F1BC51 #51F16C
square
#5186F1 #F151D6 #F1BC51 #51F16C
split-complementary
#5186F1 #F16C51 #D6F151
monochromatic
#0F47B9 #185FEC #5186F1 #8AADF6 #C2D5FA

Accessibility & contrast

On white

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

On black

6.03
#5186F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5186F1
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5186F1#FFFFFF#000000##000000
##5186F11.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5191F5
Deuteranopia (green-blind)
#3482EF
Tritanopia (blue-blind)
#009FB0
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5186f1;
/* rgb */ color: rgb(81, 134, 241);
/* oklch */ color: oklch(63.7% 0.170 262.7);
Tailwind
colors: {
  custom: {
    50: '#92a8f6',
    500: '#5186f1',
    950: '#000000',
  },
}
SCSS
$custom: #5186f1;
$custom-light: #92a8f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5186f1",
  "rgb": {
    "r": 81,
    "g": 134,
    "b": 241
  },
  "hsl": {
    "h": 220.125,
    "s": 85.106,
    "l": 63.137
  },
  "oklch": {
    "l": 0.63659,
    "c": 0.17025,
    "h": 262.7
  },
  "luminance": 0.2515
}

Semantic roles & 50–950 ramp

primary
#5186F1
secondary
#ECD9B2
accent
#9804E2
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5186F1

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

Preview Lab → · Contrast checker → · Palette generator →

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