#5786F2#5786F2

#5786F2 is a light, vivid blue. Relative luminance 0.255; OKLCH L 64.0% C 0.170 H 264.4°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#5786F2
RGBrgb(87, 134, 242)
HSLhsl(222, 86%, 65%)
HSVhsv(222, 64%, 95%)
CMYKcmyk(64%, 44.6%, 0%, 5.1%)
CIE-LABlab(57.54, 17.57, -59.07)
CIE-LCHlch(57.54, 61.63, 286.56°)
OKLaboklab(64% -0.0165 -0.1688)
OKLCHoklch(64% 0.17 264.4)
XYZxyz(28.4770, 25.4846, 87.4055)
Luminance0.2549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5786F2 #F2C357
analogous
#57D4F2 #5786F2 #7557F2
triadic
#5786F2 #F25786 #86F257
tetradic
#5786F2 #F257D4 #F2C357 #57F275
square
#5786F2 #F257D4 #F2C357 #57F275
split-complementary
#5786F2 #F27557 #D4F257
monochromatic
#0F44C0 #1E5DEE #5786F2 #90AFF6 #C9D8FB

Accessibility & contrast

On white

3.44
#5786F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#5786F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5786F2
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5786F2#FFFFFF#000000##000000
##5786F21.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5292F6
Deuteranopia (green-blind)
#3784F0
Tritanopia (blue-blind)
#009FB0
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #5786f2;
/* rgb */ color: rgb(87, 134, 242);
/* oklch */ color: oklch(64.0% 0.170 264.4);
Tailwind
colors: {
  custom: {
    50: '#95a8f7',
    500: '#5786f2',
    950: '#000000',
  },
}
SCSS
$custom: #5786f2;
$custom-light: #95a8f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5786f2",
  "rgb": {
    "r": 87,
    "g": 134,
    "b": 242
  },
  "hsl": {
    "h": 221.806,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.64,
    "c": 0.16962,
    "h": 264.4
  },
  "luminance": 0.25487
}

Semantic roles & 50–950 ramp

primary
#5786F2
secondary
#EDDDB8
accent
#9F03E2
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5786F2

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

Preview Lab → · Contrast checker → · Palette generator →

#5786F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva