#5187DB#5187DB

#5187DB is a light, vivid blue. Relative luminance 0.242; OKLCH L 62.5% C 0.140 H 258.9°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#5187DB
RGBrgb(81, 135, 219)
HSLhsl(217, 66%, 59%)
HSVhsv(217, 63%, 86%)
CMYKcmyk(63%, 38.4%, 0%, 14.1%)
CIE-LABlab(56.28, 8.13, -48.30)
CIE-LCHlch(56.28, 48.98, 279.56°)
OKLaboklab(62.54% -0.0268 -0.1373)
OKLCHoklch(62.54% 0.14 258.9)
XYZxyz(24.8390, 24.1894, 70.3641)
Luminance0.2419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187DB #DBA551
analogous
#51CCDB #5187DB #6051DB
triadic
#5187DB #DB5187 #87DB51
tetradic
#5187DB #DB51CC #DBA551 #51DB60
square
#5187DB #DB51CC #DBA551 #51DB60
split-complementary
#5187DB #DB6051 #CCDB51
monochromatic
#1E4C93 #2966C6 #5187DB #84AAE5 #B6CDF0

Accessibility & contrast

On white

3.60
#5187DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#5187DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187DB
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187DB#FFFFFF#000000##000000
##5187DB1.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#628EDE
Deuteranopia (green-blind)
#4F81D9
Tritanopia (blue-blind)
#009AA6
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5187db;
/* rgb */ color: rgb(81, 135, 219);
/* oklch */ color: oklch(62.5% 0.140 258.9);
Tailwind
colors: {
  custom: {
    50: '#8ea9e6',
    500: '#5187db',
    950: '#000000',
  },
}
SCSS
$custom: #5187db;
$custom-light: #8ea9e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5187db",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 219
  },
  "hsl": {
    "h": 216.522,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.62537,
    "c": 0.13988,
    "h": 258.9
  },
  "luminance": 0.24192
}

Semantic roles & 50–950 ramp

primary
#5187DB
secondary
#DFCAA9
accent
#A63FE9
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #5187DB

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

Preview Lab → · Contrast checker → · Palette generator →

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