#5187D5#5187D5

#5187D5 is a light, vivid blue. Relative luminance 0.239; OKLCH L 62.2% C 0.132 H 257.6°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5187D5
RGBrgb(81, 135, 213)
HSLhsl(215, 61%, 58%)
HSVhsv(215, 62%, 84%)
CMYKcmyk(62%, 36.6%, 0%, 16.5%)
CIE-LABlab(55.97, 6.11, -45.42)
CIE-LCHlch(55.97, 45.83, 277.66°)
OKLaboklab(62.19% -0.0282 -0.1289)
OKLCHoklch(62.19% 0.132 257.6)
XYZxyz(24.0633, 23.8792, 66.2789)
Luminance0.2388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187D5 #D59F51
analogous
#51C9D5 #5187D5 #5D51D5
triadic
#5187D5 #D55187 #87D551
tetradic
#5187D5 #D551C9 #D59F51 #51D55D
square
#5187D5 #D551C9 #D59F51 #51D55D
split-complementary
#5187D5 #D55D51 #C9D551
monochromatic
#214C8A #2D67BC #5187D5 #82A9E1 #B4CBED

Accessibility & contrast

On white

3.64
#5187D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#5187D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187D5
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187D5#FFFFFF#000000##000000
##5187D51.003.645.785.78
#FFFFFF3.641.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#658DD8
Deuteranopia (green-blind)
#5380D3
Tritanopia (blue-blind)
#0099A4
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5187d5;
/* rgb */ color: rgb(81, 135, 213);
/* oklch */ color: oklch(62.2% 0.132 257.6);
Tailwind
colors: {
  custom: {
    50: '#8da9e2',
    500: '#5187d5',
    950: '#000000',
  },
}
SCSS
$custom: #5187d5;
$custom-light: #8da9e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5187d5",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 213
  },
  "hsl": {
    "h": 215.455,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.62194,
    "c": 0.13192,
    "h": 257.6
  },
  "luminance": 0.23881
}

Semantic roles & 50–950 ramp

primary
#5187D5
secondary
#DBC6A6
accent
#A344E4
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5187D5

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

Preview Lab → · Contrast checker → · Palette generator →

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