#5187F2#5187F2

#5187F2 is a light, vivid blue. Relative luminance 0.255; OKLCH L 63.9% C 0.170 H 262.5°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#5187F2
RGBrgb(81, 135, 242)
HSLhsl(220, 86%, 63%)
HSVhsv(220, 67%, 95%)
CMYKcmyk(66.5%, 44.2%, 0%, 5.1%)
CIE-LABlab(57.55, 16.00, -59.09)
CIE-LCHlch(57.55, 61.22, 285.15°)
OKLaboklab(63.93% -0.0224 -0.1689)
OKLCHoklch(63.93% 0.17 262.5)
XYZxyz(28.0787, 25.4853, 87.4266)
Luminance0.2549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187F2 #F2BC51
analogous
#51D7F2 #5187F2 #6B51F2
triadic
#5187F2 #F25187 #87F251
tetradic
#5187F2 #F251D7 #F2BC51 #51F26B
square
#5187F2 #F251D7 #F2BC51 #51F26B
split-complementary
#5187F2 #F26B51 #D7F251
monochromatic
#0E48BB #1860EE #5187F2 #8AAEF6 #C3D6FB

Accessibility & contrast

On white

3.44
#5187F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#5187F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187F2
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187F2#FFFFFF#000000##000000
##5187F21.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5392F6
Deuteranopia (green-blind)
#3683F0
Tritanopia (blue-blind)
#00A0B1
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #5187f2;
/* rgb */ color: rgb(81, 135, 242);
/* oklch */ color: oklch(63.9% 0.170 262.5);
Tailwind
colors: {
  custom: {
    50: '#92a9f7',
    500: '#5187f2',
    950: '#000000',
  },
}
SCSS
$custom: #5187f2;
$custom-light: #92a9f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5187f2",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 219.876,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.63928,
    "c": 0.17042,
    "h": 262.5
  },
  "luminance": 0.25488
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5187F2

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

Preview Lab → · Contrast checker → · Palette generator →

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