#5187E5#5187E5

#5187E5 is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.1% C 0.153 H 260.7°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5187E5
RGBrgb(81, 135, 229)
HSLhsl(218, 74%, 61%)
HSVhsv(218, 65%, 90%)
CMYKcmyk(64.6%, 41%, 0%, 10.2%)
CIE-LABlab(56.81, 11.53, -53.04)
CIE-LCHlch(56.81, 54.28, 282.27°)
OKLaboklab(63.13% -0.0247 -0.1512)
OKLCHoklch(63.13% 0.153 260.7)
XYZxyz(26.1952, 24.7319, 77.5068)
Luminance0.2473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187E5 #E5AF51
analogous
#51D1E5 #5187E5 #6551E5
triadic
#5187E5 #E55187 #87E551
tetradic
#5187E5 #E551D1 #E5AF51 #51E565
square
#5187E5 #E551D1 #E5AF51 #51E565
split-complementary
#5187E5 #E56551 #D1E551
monochromatic
#184BA3 #2064D8 #5187E5 #86ACED #BBD0F5

Accessibility & contrast

On white

3.53
#5187E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#5187E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187E5
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187E5#FFFFFF#000000##000000
##5187E51.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C90E9
Deuteranopia (green-blind)
#4582E3
Tritanopia (blue-blind)
#009CAB
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5187e5;
/* rgb */ color: rgb(81, 135, 229);
/* oklch */ color: oklch(63.1% 0.153 260.7);
Tailwind
colors: {
  custom: {
    50: '#90a9ee',
    500: '#5187e5',
    950: '#000000',
  },
}
SCSS
$custom: #5187e5;
$custom-light: #90a9ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5187e5",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 229
  },
  "hsl": {
    "h": 218.108,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.63127,
    "c": 0.15318,
    "h": 260.7
  },
  "luminance": 0.24734
}

Semantic roles & 50–950 ramp

primary
#5187E5
secondary
#E5D0AD
accent
#8E0FD6
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5187E5

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

Preview Lab → · Contrast checker → · Palette generator →

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