#5787DB#5787DB

#5787DB is a light, vivid blue. Relative luminance 0.245; OKLCH L 62.8% C 0.138 H 260.9°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5787DB
RGBrgb(87, 135, 219)
HSLhsl(218, 65%, 60%)
HSVhsv(218, 60%, 86%)
CMYKcmyk(60.3%, 38.4%, 0%, 14.1%)
CIE-LABlab(56.55, 9.23, -47.84)
CIE-LCHlch(56.55, 48.73, 280.93°)
OKLaboklab(62.83% -0.0218 -0.1358)
OKLCHoklch(62.83% 0.138 260.9)
XYZxyz(25.3762, 24.4664, 70.3893)
Luminance0.2447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787DB #DBAB57
analogous
#57C9DB #5787DB #6957DB
triadic
#5787DB #DB5787 #87DB57
tetradic
#5787DB #DB57C9 #DBAB57 #57DB69
square
#5787DB #DB57C9 #DBAB57 #57DB69
split-complementary
#5787DB #DB6957 #C9DB57
monochromatic
#204C97 #2B65CA #5787DB #89ABE6 #BCCFF1

Accessibility & contrast

On white

3.56
#5787DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#5787DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787DB
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787DB#FFFFFF#000000##000000
##5787DB1.003.565.895.89
#FFFFFF3.561.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#638EDE
Deuteranopia (green-blind)
#5182D9
Tritanopia (blue-blind)
#009AA6
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5787db;
/* rgb */ color: rgb(87, 135, 219);
/* oklch */ color: oklch(62.8% 0.138 260.9);
Tailwind
colors: {
  custom: {
    50: '#91a9e6',
    500: '#5787db',
    950: '#000000',
  },
}
SCSS
$custom: #5787db;
$custom-light: #91a9e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5787db",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 219
  },
  "hsl": {
    "h": 218.182,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.62825,
    "c": 0.13759,
    "h": 260.9
  },
  "luminance": 0.24469
}

Semantic roles & 50–950 ramp

primary
#5787DB
secondary
#E0CEAD
accent
#AB40E8
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5787DB

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

Preview Lab → · Contrast checker → · Palette generator →

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