#5787F3#5787F3

#5787F3 is a light, vivid blue. Relative luminance 0.258; OKLCH L 64.3% C 0.170 H 264.2°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#5787F3
RGBrgb(87, 135, 243)
HSLhsl(222, 87%, 65%)
HSVhsv(222, 64%, 95%)
CMYKcmyk(64.2%, 44.4%, 0%, 4.7%)
CIE-LABlab(57.87, 17.30, -59.11)
CIE-LCHlch(57.87, 61.59, 286.32°)
OKLaboklab(64.27% -0.0173 -0.1689)
OKLCHoklch(64.27% 0.17 264.2)
XYZxyz(28.7665, 25.8225, 88.2449)
Luminance0.2582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787F3 #F3C357
analogous
#57D5F3 #5787F3 #7557F3
triadic
#5787F3 #F35787 #87F357
tetradic
#5787F3 #F357D5 #F3C357 #57F375
square
#5787F3 #F357D5 #F3C357 #57F375
split-complementary
#5787F3 #F37557 #D5F357
monochromatic
#0E45C2 #1E5EEF #5787F3 #90B0F7 #C9D9FB

Accessibility & contrast

On white

3.41
#5787F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#5787F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787F3
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787F3#FFFFFF#000000##000000
##5787F31.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5393F7
Deuteranopia (green-blind)
#3884F1
Tritanopia (blue-blind)
#00A0B1
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #5787f3;
/* rgb */ color: rgb(87, 135, 243);
/* oklch */ color: oklch(64.3% 0.170 264.2);
Tailwind
colors: {
  custom: {
    50: '#95a9f8',
    500: '#5787f3',
    950: '#000000',
  },
}
SCSS
$custom: #5787f3;
$custom-light: #95a9f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5787f3",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 243
  },
  "hsl": {
    "h": 221.538,
    "s": 86.667,
    "l": 64.706
  },
  "oklch": {
    "l": 0.64268,
    "c": 0.16979,
    "h": 264.2
  },
  "luminance": 0.25825
}

Semantic roles & 50–950 ramp

primary
#5787F3
secondary
#EEDDB8
accent
#9E02E3
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5787F3

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

Preview Lab → · Contrast checker → · Palette generator →

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