#5187DC#5187DC

#5187DC is a light, vivid blue. Relative luminance 0.242; OKLCH L 62.6% C 0.141 H 259.1°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#5187DC
RGBrgb(81, 135, 220)
HSLhsl(217, 67%, 59%)
HSVhsv(217, 63%, 86%)
CMYKcmyk(63.2%, 38.6%, 0%, 13.7%)
CIE-LABlab(56.33, 8.47, -48.77)
CIE-LCHlch(56.33, 49.50, 279.85°)
OKLaboklab(62.6% -0.0266 -0.1387)
OKLCHoklch(62.6% 0.141 259.1)
XYZxyz(24.9710, 24.2422, 71.0595)
Luminance0.2424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187DC #DCA651
analogous
#51CCDC #5187DC #6151DC
triadic
#5187DC #DC5187 #87DC51
tetradic
#5187DC #DC51CC #DCA651 #51DC61
square
#5187DC #DC51CC #DCA651 #51DC61
split-complementary
#5187DC #DC6151 #CCDC51
monochromatic
#1E4C95 #2866C8 #5187DC #84AAE6 #B7CDF0

Accessibility & contrast

On white

3.59
#5187DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#5187DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187DC
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187DC#FFFFFF#000000##000000
##5187DC1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#628EDF
Deuteranopia (green-blind)
#4E81DA
Tritanopia (blue-blind)
#009AA7
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5187dc;
/* rgb */ color: rgb(81, 135, 220);
/* oklch */ color: oklch(62.6% 0.141 259.1);
Tailwind
colors: {
  custom: {
    50: '#8ea9e7',
    500: '#5187dc',
    950: '#000000',
  },
}
SCSS
$custom: #5187dc;
$custom-light: #8ea9e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5187dc",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 216.691,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.62595,
    "c": 0.14121,
    "h": 259.1
  },
  "luminance": 0.24245
}

Semantic roles & 50–950 ramp

primary
#5187DC
secondary
#E0CAA9
accent
#A73EE9
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #5187DC

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

Preview Lab → · Contrast checker → · Palette generator →

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