#5A98EF#5A98EF

#5A98EF is a light, vivid blue. Relative luminance 0.309; OKLCH L 67.7% C 0.145 H 257.1°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#5A98EF
RGBrgb(90, 152, 239)
HSLhsl(215, 82%, 65%)
HSVhsv(215, 62%, 94%)
CMYKcmyk(62.3%, 36.4%, 0%, 6.3%)
CIE-LABlab(62.39, 6.36, -49.70)
CIE-LCHlch(62.39, 50.10, 277.30°)
OKLaboklab(67.73% -0.0322 -0.141)
OKLCHoklch(67.73% 0.145 257.1)
XYZxyz(31.0191, 30.8592, 85.9664)
Luminance0.3086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A98EF #EFB15A
analogous
#5AE2EF #5A98EF #675AEF
triadic
#5A98EF #EF5A98 #98EF5A
tetradic
#5A98EF #EF5AE2 #EFB15A #5AEF67
square
#5A98EF #EF5AE2 #EFB15A #5AEF67
split-complementary
#5A98EF #EF675A #E2EF5A
monochromatic
#1259BC #2275EA #5A98EF #92BBF4 #CADEFA

Accessibility & contrast

On white

2.93
#5A98EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.17
#5A98EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5A98EF
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A98EF#FFFFFF#000000##000000
##5A98EF1.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#729EF3
Deuteranopia (green-blind)
#5E90ED
Tritanopia (blue-blind)
#00ACB8
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5a98ef;
/* rgb */ color: rgb(90, 152, 239);
/* oklch */ color: oklch(67.7% 0.145 257.1);
Tailwind
colors: {
  custom: {
    50: '#95b5f4',
    500: '#5a98ef',
    950: '#000000',
  },
}
SCSS
$custom: #5a98ef;
$custom-light: #95b5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a98ef",
  "rgb": {
    "r": 90,
    "g": 152,
    "b": 239
  },
  "hsl": {
    "h": 215.034,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.6773,
    "c": 0.14468,
    "h": 257.1
  },
  "luminance": 0.30862
}

Semantic roles & 50–950 ramp

primary
#5A98EF
secondary
#ECD7B9
accent
#8507DF
background
#F9FBFE
surface
#F2F6FD
border
#CCD0D5
text
#0E1117
muted
#7E8085

Preview Lab

Preview with #5A98EF

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

Preview Lab → · Contrast checker → · Palette generator →

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