#5187E1#5187E1

#5187E1 is a light, vivid blue. Relative luminance 0.245; OKLCH L 62.9% C 0.148 H 260.0°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5187E1
RGBrgb(81, 135, 225)
HSLhsl(218, 71%, 60%)
HSVhsv(218, 64%, 88%)
CMYKcmyk(64%, 40%, 0%, 11.8%)
CIE-LABlab(56.60, 10.17, -51.15)
CIE-LCHlch(56.60, 52.15, 281.24°)
OKLaboklab(62.89% -0.0255 -0.1456)
OKLCHoklch(62.89% 0.148 260)
XYZxyz(25.6431, 24.5111, 74.5993)
Luminance0.2451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187E1 #E1AB51
analogous
#51CFE1 #5187E1 #6351E1
triadic
#5187E1 #E15187 #87E151
tetradic
#5187E1 #E151CF #E1AB51 #51E163
square
#5187E1 #E151CF #E1AB51 #51E163
split-complementary
#5187E1 #E16351 #CFE151
monochromatic
#1B4C9D #2465D1 #5187E1 #85ABEA #B9CFF3

Accessibility & contrast

On white

3.56
#5187E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#5187E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187E1
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187E1#FFFFFF#000000##000000
##5187E11.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8FE5
Deuteranopia (green-blind)
#4982DF
Tritanopia (blue-blind)
#009CA9
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5187e1;
/* rgb */ color: rgb(81, 135, 225);
/* oklch */ color: oklch(62.9% 0.148 260.0);
Tailwind
colors: {
  custom: {
    50: '#8fa9eb',
    500: '#5187e1',
    950: '#000000',
  },
}
SCSS
$custom: #5187e1;
$custom-light: #8fa9eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5187e1",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 225
  },
  "hsl": {
    "h": 217.5,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.62888,
    "c": 0.14786,
    "h": 260
  },
  "luminance": 0.24514
}

Semantic roles & 50–950 ramp

primary
#5187E1
secondary
#E3CEAB
accent
#AA3AED
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5187E1

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

Preview Lab → · Contrast checker → · Palette generator →

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