#5789F2#5789F2

#5789F2 is a light, vivid blue. Relative luminance 0.263; OKLCH L 64.6% C 0.166 H 263.3°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5789F2
RGBrgb(87, 137, 242)
HSLhsl(221, 86%, 65%)
HSVhsv(221, 64%, 95%)
CMYKcmyk(64%, 43.4%, 0%, 5.1%)
CIE-LABlab(58.34, 15.76, -57.79)
CIE-LCHlch(58.34, 59.90, 285.25°)
OKLaboklab(64.61% -0.0193 -0.165)
OKLCHoklch(64.61% 0.166 263.3)
XYZxyz(28.8975, 26.3256, 87.5457)
Luminance0.2633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5789F2 #F2C057
analogous
#57D7F2 #5789F2 #7357F2
triadic
#5789F2 #F25789 #89F257
tetradic
#5789F2 #F257D7 #F2C057 #57F273
square
#5789F2 #F257D7 #F2C057 #57F273
split-complementary
#5789F2 #F27357 #D7F257
monochromatic
#0F48C0 #1E61EE #5789F2 #90B1F6 #C9D9FB

Accessibility & contrast

On white

3.35
#5789F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#5789F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5789F2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5789F2#FFFFFF#000000##000000
##5789F21.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5794F6
Deuteranopia (green-blind)
#3E86F0
Tritanopia (blue-blind)
#00A1B2
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5789f2;
/* rgb */ color: rgb(87, 137, 242);
/* oklch */ color: oklch(64.6% 0.166 263.3);
Tailwind
colors: {
  custom: {
    50: '#94aaf7',
    500: '#5789f2',
    950: '#000000',
  },
}
SCSS
$custom: #5789f2;
$custom-light: #94aaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#5789f2",
  "rgb": {
    "r": 87,
    "g": 137,
    "b": 242
  },
  "hsl": {
    "h": 220.645,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.64615,
    "c": 0.16614,
    "h": 263.3
  },
  "luminance": 0.26328
}

Semantic roles & 50–950 ramp

primary
#5789F2
secondary
#EDDCB8
accent
#9A03E2
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E1017
muted
#7E7F85

Preview Lab

Preview with #5789F2

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

Preview Lab → · Contrast checker → · Palette generator →

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