#5A98F1#5A98F1

#5A98F1 is a light, vivid blue. Relative luminance 0.310; OKLCH L 67.8% C 0.147 H 257.5°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5A98F1
RGBrgb(90, 152, 241)
HSLhsl(215, 84%, 65%)
HSVhsv(215, 63%, 95%)
CMYKcmyk(62.7%, 36.9%, 0%, 5.5%)
CIE-LABlab(62.49, 7.02, -50.64)
CIE-LCHlch(62.49, 51.12, 277.90°)
OKLaboklab(67.84% -0.0318 -0.1438)
OKLCHoklch(67.84% 0.147 257.5)
XYZxyz(31.3162, 30.9781, 87.5310)
Luminance0.3098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A98F1 #F1B35A
analogous
#5AE4F1 #5A98F1 #675AF1
triadic
#5A98F1 #F15A98 #98F15A
tetradic
#5A98F1 #F15AE4 #F1B35A #5AF167
square
#5A98F1 #F15AE4 #F1B35A #5AF167
split-complementary
#5A98F1 #F1675A #E4F15A
monochromatic
#1059C0 #2275EC #5A98F1 #92BBF6 #CBDEFB

Accessibility & contrast

On white

2.92
#5A98F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#5A98F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5A98F1
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A98F1#FFFFFF#000000##000000
##5A98F11.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a98f1;
/* rgb */ color: rgb(90, 152, 241);
/* oklch */ color: oklch(67.8% 0.147 257.5);
Tailwind
colors: {
  custom: {
    50: '#96b5f6',
    500: '#5a98f1',
    950: '#000000',
  },
}
SCSS
$custom: #5a98f1;
$custom-light: #96b5f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a98f1",
  "rgb": {
    "r": 90,
    "g": 152,
    "b": 241
  },
  "hsl": {
    "h": 215.364,
    "s": 84.358,
    "l": 64.902
  },
  "oklch": {
    "l": 0.67841,
    "c": 0.14726,
    "h": 257.5
  },
  "luminance": 0.30981
}

Semantic roles & 50–950 ramp

primary
#5A98F1
secondary
#EDD8BA
accent
#8605E1
background
#F9FBFF
surface
#F2F6FE
border
#CCD0D6
text
#0E1117
muted
#7E8085

Preview Lab

Preview with #5A98F1

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

Preview Lab → · Contrast checker → · Palette generator →

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