#5787FD#5787FD

#5787FD is a light, vivid blue. Relative luminance 0.264; OKLCH L 64.9% C 0.183 H 265.1°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#5787FD
RGBrgb(87, 135, 253)
HSLhsl(223, 98%, 67%)
HSVhsv(223, 66%, 99%)
CMYKcmyk(65.6%, 46.6%, 0%, 0.8%)
CIE-LABlab(58.46, 20.70, -63.68)
CIE-LCHlch(58.46, 66.96, 288.01°)
OKLaboklab(64.91% -0.0158 -0.1824)
OKLCHoklch(64.91% 0.183 265.1)
XYZxyz(30.3179, 26.4431, 96.4157)
Luminance0.2645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787FD #FDCD57
analogous
#57DAFD #5787FD #7A57FD
triadic
#5787FD #FD5787 #87FD57
tetradic
#5787FD #FD57DA #FDCD57 #57FD7A
square
#5787FD #FD57DA #FDCD57 #57FD7A
split-complementary
#5787FD #FD7A57 #DAFD57
monochromatic
#0340D7 #1B5CFC #5787FD #93B2FE #D0DDFE

Accessibility & contrast

On white

3.34
#5787FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#5787FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787FD
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787FD#FFFFFF#000000##000000
##5787FD1.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A95FF
Deuteranopia (green-blind)
#2685FB
Tritanopia (blue-blind)
#00A2B6
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #5787fd;
/* rgb */ color: rgb(87, 135, 253);
/* oklch */ color: oklch(64.9% 0.183 265.1);
Tailwind
colors: {
  custom: {
    50: '#96a9ff',
    500: '#5787fd',
    950: '#000000',
  },
}
SCSS
$custom: #5787fd;
$custom-light: #96a9ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5787fd",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 253
  },
  "hsl": {
    "h": 222.651,
    "s": 97.647,
    "l": 66.667
  },
  "oklch": {
    "l": 0.64906,
    "c": 0.18303,
    "h": 265.1
  },
  "luminance": 0.26446
}

Semantic roles & 50–950 ramp

primary
#5787FD
secondary
#F3E3BD
accent
#A300E6
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F18
muted
#7F7F86

Preview Lab

Preview with #5787FD

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

Preview Lab → · Contrast checker → · Palette generator →

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