#5798F3#5798F3

#5798F3 is a light, vivid blue. Relative luminance 0.310; OKLCH L 67.8% C 0.151 H 257.1°. Best body text is #000000 at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5798F3
RGBrgb(87, 152, 243)
HSLhsl(215, 87%, 65%)
HSVhsv(215, 64%, 95%)
CMYKcmyk(64.2%, 37.4%, 0%, 4.7%)
CIE-LABlab(62.47, 7.18, -51.78)
CIE-LCHlch(62.47, 52.28, 277.89°)
OKLaboklab(67.82% -0.0336 -0.1472)
OKLCHoklch(67.82% 0.151 257.1)
XYZxyz(31.3306, 30.9507, 89.0996)
Luminance0.3095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5798F3 #F3B257
analogous
#57E6F3 #5798F3 #6457F3
triadic
#5798F3 #F35798 #98F357
tetradic
#5798F3 #F357E6 #F3B257 #57F364
square
#5798F3 #F357E6 #F3B257 #57F364
split-complementary
#5798F3 #F36457 #E6F357
monochromatic
#0E59C2 #1E75EF #5798F3 #90BBF7 #C9DEFB

Accessibility & contrast

On white

2.92
#5798F3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.19
#5798F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5798F3
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5798F3#FFFFFF#000000##000000
##5798F31.002.927.197.19
#FFFFFF2.921.0021.0021.00
#0000007.1921.001.001.00
##0000007.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#709FF7
Deuteranopia (green-blind)
#5990F1
Tritanopia (blue-blind)
#00ADBA
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5798f3;
/* rgb */ color: rgb(87, 152, 243);
/* oklch */ color: oklch(67.8% 0.151 257.1);
Tailwind
colors: {
  custom: {
    50: '#94b5f7',
    500: '#5798f3',
    950: '#000000',
  },
}
SCSS
$custom: #5798f3;
$custom-light: #94b5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5798f3",
  "rgb": {
    "r": 87,
    "g": 152,
    "b": 243
  },
  "hsl": {
    "h": 215,
    "s": 86.667,
    "l": 64.706
  },
  "oklch": {
    "l": 0.67822,
    "c": 0.15097,
    "h": 257.1
  },
  "luminance": 0.30954
}

Semantic roles & 50–950 ramp

primary
#5798F3
secondary
#EED7B8
accent
#8502E3
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0E1117
muted
#7E8085

Preview Lab

Preview with #5798F3

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

Preview Lab → · Contrast checker → · Palette generator →

#5798F3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva