#5A98F2#5A98F2

#5A98F2 is a light, vivid blue. Relative luminance 0.310; OKLCH L 67.9% C 0.149 H 257.7°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5A98F2
RGBrgb(90, 152, 242)
HSLhsl(216, 85%, 65%)
HSVhsv(216, 63%, 95%)
CMYKcmyk(62.8%, 37.2%, 0%, 5.1%)
CIE-LABlab(62.54, 7.36, -51.11)
CIE-LCHlch(62.54, 51.64, 278.19°)
OKLaboklab(67.9% -0.0315 -0.1452)
OKLCHoklch(67.9% 0.149 257.7)
XYZxyz(31.4660, 31.0380, 88.3199)
Luminance0.3104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A98F2 #F2B45A
analogous
#5AE4F2 #5A98F2 #685AF2
triadic
#5A98F2 #F25A98 #98F25A
tetradic
#5A98F2 #F25AE4 #F2B45A #5AF268
square
#5A98F2 #F25AE4 #F2B45A #5AF268
split-complementary
#5A98F2 #F2685A #E4F25A
monochromatic
#0F58C2 #2175EE #5A98F2 #93BBF6 #CBDFFB

Accessibility & contrast

On white

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

On black

7.21
#5A98F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5A98F2
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A98F2#FFFFFF#000000##000000
##5A98F21.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a98f2;
/* rgb */ color: rgb(90, 152, 242);
/* oklch */ color: oklch(67.9% 0.149 257.7);
Tailwind
colors: {
  custom: {
    50: '#96b5f7',
    500: '#5a98f2',
    950: '#000000',
  },
}
SCSS
$custom: #5a98f2;
$custom-light: #96b5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a98f2",
  "rgb": {
    "r": 90,
    "g": 152,
    "b": 242
  },
  "hsl": {
    "h": 215.526,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.67897,
    "c": 0.14855,
    "h": 257.7
  },
  "luminance": 0.31041
}

Semantic roles & 50–950 ramp

primary
#5A98F2
secondary
#EED9BA
accent
#8704E2
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0E1117
muted
#7E8085

Preview Lab

Preview with #5A98F2

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

Preview Lab → · Contrast checker → · Palette generator →

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