#5187F4#5187F4

#5187F4 is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.1% C 0.173 H 262.7°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5187F4
RGBrgb(81, 135, 244)
HSLhsl(220, 88%, 64%)
HSVhsv(220, 67%, 96%)
CMYKcmyk(66.8%, 44.7%, 0%, 4.3%)
CIE-LABlab(57.66, 16.69, -60.01)
CIE-LCHlch(57.66, 62.29, 285.54°)
OKLaboklab(64.05% -0.022 -0.1716)
OKLCHoklch(64.05% 0.173 262.7)
XYZxyz(28.3807, 25.6061, 89.0172)
Luminance0.2561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187F4 #F4BE51
analogous
#51D8F4 #5187F4 #6C51F4
triadic
#5187F4 #F45187 #87F451
tetradic
#5187F4 #F451D8 #F4BE51 #51F46C
square
#5187F4 #F451D8 #F4BE51 #51F46C
split-complementary
#5187F4 #F46C51 #D8F451
monochromatic
#0C47BF #175FF0 #5187F4 #8BAFF8 #C4D6FB

Accessibility & contrast

On white

3.43
#5187F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#5187F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187F4
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187F4#FFFFFF#000000##000000
##5187F41.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5193F8
Deuteranopia (green-blind)
#3384F2
Tritanopia (blue-blind)
#00A0B2
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #5187f4;
/* rgb */ color: rgb(81, 135, 244);
/* oklch */ color: oklch(64.1% 0.173 262.7);
Tailwind
colors: {
  custom: {
    50: '#92a9f8',
    500: '#5187f4',
    950: '#000000',
  },
}
SCSS
$custom: #5187f4;
$custom-light: #92a9f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5187f4",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 220.123,
    "s": 88.108,
    "l": 63.725
  },
  "oklch": {
    "l": 0.64055,
    "c": 0.17306,
    "h": 262.7
  },
  "luminance": 0.25609
}

Semantic roles & 50–950 ramp

primary
#5187F4
secondary
#EDDAB4
accent
#9901E5
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5187F4

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

Preview Lab → · Contrast checker → · Palette generator →

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