#5797FD#5797FD

#5797FD is a light, vivid blue. Relative luminance 0.313; OKLCH L 68.2% C 0.165 H 259.3°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#5797FD
RGBrgb(87, 151, 253)
HSLhsl(217, 98%, 67%)
HSVhsv(217, 66%, 99%)
CMYKcmyk(65.6%, 40.3%, 0%, 0.8%)
CIE-LABlab(62.72, 11.13, -56.87)
CIE-LCHlch(62.72, 57.95, 281.07°)
OKLaboklab(68.19% -0.0305 -0.1621)
OKLCHoklch(68.19% 0.165 259.3)
XYZxyz(32.7204, 31.2481, 97.2166)
Luminance0.3125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5797FD #FDBD57
analogous
#57EAFD #5797FD #6A57FD
triadic
#5797FD #FD5797 #97FD57
tetradic
#5797FD #FD57EA #FDBD57 #57FD6A
square
#5797FD #FD57EA #FDBD57 #57FD6A
split-complementary
#5797FD #FD6A57 #EAFD57
monochromatic
#0354D7 #1B72FC #5797FD #93BCFE #D0E2FE

Accessibility & contrast

On white

2.90
#5797FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#5797FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5797FD
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5797FD#FFFFFF#000000##000000
##5797FD1.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#68A0FF
Deuteranopia (green-blind)
#4F91FB
Tritanopia (blue-blind)
#00AEBE
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #5797fd;
/* rgb */ color: rgb(87, 151, 253);
/* oklch */ color: oklch(68.2% 0.165 259.3);
Tailwind
colors: {
  custom: {
    50: '#96b5fe',
    500: '#5797fd',
    950: '#000000',
  },
}
SCSS
$custom: #5797fd;
$custom-light: #96b5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#5797fd",
  "rgb": {
    "r": 87,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 216.867,
    "s": 97.647,
    "l": 66.667
  },
  "oklch": {
    "l": 0.68187,
    "c": 0.16495,
    "h": 259.3
  },
  "luminance": 0.31251
}

Semantic roles & 50–950 ramp

primary
#5797FD
secondary
#F3DEBD
accent
#8D00E6
background
#FAFBFF
surface
#F3F6FF
border
#CDD0D7
text
#0F1118
muted
#7F8086

Preview Lab

Preview with #5797FD

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

Preview Lab → · Contrast checker → · Palette generator →

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