#5B98F2#5B98F2

#5B98F2 is a light, vivid blue. Relative luminance 0.311; OKLCH L 67.9% C 0.148 H 258.0°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5B98F2
RGBrgb(91, 152, 242)
HSLhsl(216, 85%, 65%)
HSVhsv(216, 62%, 95%)
CMYKcmyk(62.4%, 37.2%, 0%, 5.1%)
CIE-LABlab(62.58, 7.53, -51.04)
CIE-LCHlch(62.58, 51.59, 278.39°)
OKLaboklab(67.94% -0.0307 -0.1449)
OKLCHoklch(67.94% 0.148 258)
XYZxyz(31.5639, 31.0885, 88.3245)
Luminance0.3109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B98F2 #F2B55B
analogous
#5BE3F2 #5B98F2 #6A5BF2
triadic
#5B98F2 #F25B98 #98F25B
tetradic
#5B98F2 #F25BE3 #F2B55B #5BF26A
square
#5B98F2 #F25BE3 #F2B55B #5BF26A
split-complementary
#5B98F2 #F26A5B #E3F25B
monochromatic
#0F58C3 #2274EE #5B98F2 #94BCF6 #CCDFFB

Accessibility & contrast

On white

2.91
#5B98F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.22
#5B98F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5B98F2
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B98F2#FFFFFF#000000##000000
##5B98F21.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#719FF6
Deuteranopia (green-blind)
#5C91F0
Tritanopia (blue-blind)
#00ACB9
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5b98f2;
/* rgb */ color: rgb(91, 152, 242);
/* oklch */ color: oklch(67.9% 0.148 258.0);
Tailwind
colors: {
  custom: {
    50: '#96b5f7',
    500: '#5b98f2',
    950: '#000000',
  },
}
SCSS
$custom: #5b98f2;
$custom-light: #96b5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b98f2",
  "rgb": {
    "r": 91,
    "g": 152,
    "b": 242
  },
  "hsl": {
    "h": 215.762,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.67942,
    "c": 0.14817,
    "h": 258
  },
  "luminance": 0.31091
}

Semantic roles & 50–950 ramp

primary
#5B98F2
secondary
#EED9BB
accent
#8804E2
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0F1117
muted
#7E8085

Preview Lab

Preview with #5B98F2

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

Preview Lab → · Contrast checker → · Palette generator →

#5B98F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva