#5187FC#5187FC

#5187FC is a light, vivid blue. Relative luminance 0.261; OKLCH L 64.6% C 0.184 H 263.5°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5187FC
RGBrgb(81, 135, 252)
HSLhsl(221, 97%, 65%)
HSVhsv(221, 68%, 99%)
CMYKcmyk(67.9%, 46.4%, 0%, 1.2%)
CIE-LABlab(58.13, 19.45, -63.66)
CIE-LCHlch(58.13, 66.57, 286.99°)
OKLaboklab(64.57% -0.0208 -0.1824)
OKLCHoklch(64.57% 0.184 263.5)
XYZxyz(29.6218, 26.1026, 95.5538)
Luminance0.2611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187FC #FCC651
analogous
#51DCFC #5187FC #7151FC
triadic
#5187FC #FC5187 #87FC51
tetradic
#5187FC #FC51DC #FCC651 #51FC71
square
#5187FC #FC51DC #FCC651 #51FC71
split-complementary
#5187FC #FC7151 #DCFC51
monochromatic
#0444CF #155EFB #5187FC #8DB0FD #C9DAFE

Accessibility & contrast

On white

3.38
#5187FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#5187FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187FC
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187FC#FFFFFF#000000##000000
##5187FC1.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A94FF
Deuteranopia (green-blind)
#2384FA
Tritanopia (blue-blind)
#00A2B5
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5187fc;
/* rgb */ color: rgb(81, 135, 252);
/* oklch */ color: oklch(64.6% 0.184 263.5);
Tailwind
colors: {
  custom: {
    50: '#94a9fe',
    500: '#5187fc',
    950: '#000000',
  },
}
SCSS
$custom: #5187fc;
$custom-light: #94a9fe;
$custom-dark: #000000;
JSON
{
  "hex": "#5187fc",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 221.053,
    "s": 96.61,
    "l": 65.294
  },
  "oklch": {
    "l": 0.6457,
    "c": 0.18358,
    "h": 263.5
  },
  "luminance": 0.26106
}

Semantic roles & 50–950 ramp

primary
#5187FC
secondary
#F1DFB8
accent
#9D00E6
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0F0F18
muted
#7E7F86

Preview Lab

Preview with #5187FC

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

Preview Lab → · Contrast checker → · Palette generator →

#5187FC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva