#5187DD#5187DD

#5187DD is a light, vivid blue. Relative luminance 0.243; OKLCH L 62.7% C 0.143 H 259.3°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5187DD
RGBrgb(81, 135, 221)
HSLhsl(217, 67%, 59%)
HSVhsv(217, 63%, 87%)
CMYKcmyk(63.3%, 38.9%, 0%, 13.3%)
CIE-LABlab(56.38, 8.81, -49.25)
CIE-LCHlch(56.38, 50.03, 280.14°)
OKLaboklab(62.65% -0.0264 -0.1401)
OKLCHoklch(62.65% 0.143 259.3)
XYZxyz(25.1038, 24.2954, 71.7591)
Luminance0.2430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187DD #DDA751
analogous
#51CDDD #5187DD #6151DD
triadic
#5187DD #DD5187 #87DD51
tetradic
#5187DD #DD51CD #DDA751 #51DD61
square
#5187DD #DD51CD #DDA751 #51DD61
split-complementary
#5187DD #DD6151 #CDDD51
monochromatic
#1D4C96 #2766C9 #5187DD #84AAE7 #B7CEF1

Accessibility & contrast

On white

3.58
#5187DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#5187DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187DD
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187DD#FFFFFF#000000##000000
##5187DD1.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#618EE0
Deuteranopia (green-blind)
#4D81DB
Tritanopia (blue-blind)
#009BA7
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5187dd;
/* rgb */ color: rgb(81, 135, 221);
/* oklch */ color: oklch(62.7% 0.143 259.3);
Tailwind
colors: {
  custom: {
    50: '#8ea9e8',
    500: '#5187dd',
    950: '#000000',
  },
}
SCSS
$custom: #5187dd;
$custom-light: #8ea9e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5187dd",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 221
  },
  "hsl": {
    "h": 216.857,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.62653,
    "c": 0.14254,
    "h": 259.3
  },
  "luminance": 0.24298
}

Semantic roles & 50–950 ramp

primary
#5187DD
secondary
#E0CBAA
accent
#A83EEA
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #5187DD

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

Preview Lab → · Contrast checker → · Palette generator →

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