#5797F2#5797F2

#5797F2 is a light, vivid blue. Relative luminance 0.306; OKLCH L 67.6% C 0.151 H 257.4°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5797F2
RGBrgb(87, 151, 242)
HSLhsl(215, 86%, 65%)
HSVhsv(215, 64%, 95%)
CMYKcmyk(64%, 37.6%, 0%, 5.1%)
CIE-LABlab(62.14, 7.43, -51.75)
CIE-LCHlch(62.14, 52.28, 278.17°)
OKLaboklab(67.55% -0.0329 -0.1471)
OKLCHoklch(67.55% 0.151 257.4)
XYZxyz(31.0183, 30.5673, 88.2526)
Luminance0.3057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5797F2 #F2B257
analogous
#57E4F2 #5797F2 #6557F2
triadic
#5797F2 #F25797 #97F257
tetradic
#5797F2 #F257E4 #F2B257 #57F265
square
#5797F2 #F257E4 #F2B257 #57F265
split-complementary
#5797F2 #F26557 #E4F257
monochromatic
#0F58C0 #1E74EE #5797F2 #90BAF6 #C9DDFB

Accessibility & contrast

On white

2.95
#5797F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#5797F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5797F2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5797F2#FFFFFF#000000##000000
##5797F21.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9EF6
Deuteranopia (green-blind)
#5990F0
Tritanopia (blue-blind)
#00ACB9
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #5797f2;
/* rgb */ color: rgb(87, 151, 242);
/* oklch */ color: oklch(67.6% 0.151 257.4);
Tailwind
colors: {
  custom: {
    50: '#94b5f7',
    500: '#5797f2',
    950: '#000000',
  },
}
SCSS
$custom: #5797f2;
$custom-light: #94b5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5797f2",
  "rgb": {
    "r": 87,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 215.226,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.67553,
    "c": 0.15073,
    "h": 257.4
  },
  "luminance": 0.3057
}

Semantic roles & 50–950 ramp

primary
#5797F2
secondary
#EDD7B8
accent
#8603E2
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0E1117
muted
#7E8085

Preview Lab

Preview with #5797F2

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

Preview Lab → · Contrast checker → · Palette generator →

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