#5997F8#5997F8

#5997F8 is a light, vivid blue. Relative luminance 0.310; OKLCH L 68.0% C 0.158 H 259.0°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5997F8
RGBrgb(89, 151, 248)
HSLhsl(217, 92%, 66%)
HSVhsv(217, 64%, 97%)
CMYKcmyk(64.1%, 39.1%, 0%, 2.7%)
CIE-LABlab(62.53, 9.77, -54.41)
CIE-LCHlch(62.53, 55.29, 280.18°)
OKLaboklab(67.98% -0.03 -0.1549)
OKLCHoklch(67.98% 0.158 259)
XYZxyz(32.1237, 31.0313, 93.0855)
Luminance0.3103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5997F8 #F8BA59
analogous
#59E6F8 #5997F8 #6A59F8
triadic
#5997F8 #F85997 #97F859
tetradic
#5997F8 #F859E6 #F8BA59 #59F86A
square
#5997F8 #F859E6 #F8BA59 #59F86A
split-complementary
#5997F8 #F86A59 #E6F859
monochromatic
#0956CE #1E72F6 #5997F8 #94BCFA #CEE1FD

Accessibility & contrast

On white

2.91
#5997F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.21
#5997F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5997F8
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5997F8#FFFFFF#000000##000000
##5997F81.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9FFC
Deuteranopia (green-blind)
#5490F6
Tritanopia (blue-blind)
#00ADBB
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5997f8;
/* rgb */ color: rgb(89, 151, 248);
/* oklch */ color: oklch(68.0% 0.158 259.0);
Tailwind
colors: {
  custom: {
    50: '#96b5fb',
    500: '#5997f8',
    950: '#000000',
  },
}
SCSS
$custom: #5997f8;
$custom-light: #96b5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#5997f8",
  "rgb": {
    "r": 89,
    "g": 151,
    "b": 248
  },
  "hsl": {
    "h": 216.604,
    "s": 91.908,
    "l": 66.078
  },
  "oklch": {
    "l": 0.67982,
    "c": 0.15776,
    "h": 259
  },
  "luminance": 0.31034
}

Semantic roles & 50–950 ramp

primary
#5997F8
secondary
#F1DCBC
accent
#8C00E6
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0F1117
muted
#7E8085

Preview Lab

Preview with #5997F8

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

Preview Lab → · Contrast checker → · Palette generator →

#5997F8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva