#5186FE#5186FE

#5186FE is a light, vivid blue. Relative luminance 0.260; OKLCH L 64.5% C 0.187 H 264.0°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#5186FE
RGBrgb(81, 134, 254)
HSLhsl(222, 99%, 66%)
HSVhsv(222, 68%, 100%)
CMYKcmyk(68.1%, 47.2%, 0%, 0.4%)
CIE-LABlab(57.99, 20.75, -64.99)
CIE-LCHlch(57.99, 68.22, 287.71°)
OKLaboklab(64.5% -0.0197 -0.1863)
OKLCHoklch(64.5% 0.187 264)
XYZxyz(29.8015, 25.9523, 97.1854)
Luminance0.2596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5186FE #FEC951
analogous
#51DDFE #5186FE #7251FE
triadic
#5186FE #FE5186 #86FE51
tetradic
#5186FE #FE51DD #FEC951 #51FE72
square
#5186FE #FE51DD #FEC951 #51FE72
split-complementary
#5186FE #FE7251 #DDFE51
monochromatic
#0142D3 #145CFE #5186FE #8EB0FE #CBDBFF

Accessibility & contrast

On white

3.39
#5186FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#5186FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5186FE
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5186FE#FFFFFF#000000##000000
##5186FE1.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4694FF
Deuteranopia (green-blind)
#1984FC
Tritanopia (blue-blind)
#00A2B6
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #5186fe;
/* rgb */ color: rgb(81, 134, 254);
/* oklch */ color: oklch(64.5% 0.187 264.0);
Tailwind
colors: {
  custom: {
    50: '#94a8ff',
    500: '#5186fe',
    950: '#000000',
  },
}
SCSS
$custom: #5186fe;
$custom-light: #94a8ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5186fe",
  "rgb": {
    "r": 81,
    "g": 134,
    "b": 254
  },
  "hsl": {
    "h": 221.618,
    "s": 98.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.645,
    "c": 0.18737,
    "h": 264
  },
  "luminance": 0.25955
}

Semantic roles & 50–950 ramp

primary
#5186FE
secondary
#F2E1B9
accent
#9F00E6
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0F0F18
muted
#7E7F86

Preview Lab

Preview with #5186FE

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

Preview Lab → · Contrast checker → · Palette generator →

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