#5A98F3#5A98F3

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

Color values

HEX#5A98F3
RGBrgb(90, 152, 243)
HSLhsl(216, 86%, 65%)
HSVhsv(216, 63%, 95%)
CMYKcmyk(63%, 37.4%, 0%, 4.7%)
CIE-LABlab(62.59, 7.69, -51.58)
CIE-LCHlch(62.59, 52.15, 278.48°)
OKLaboklab(67.95% -0.0313 -0.1465)
OKLCHoklch(67.95% 0.15 257.9)
XYZxyz(31.6166, 31.0982, 89.1130)
Luminance0.3110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A98F3 #F3B55A
analogous
#5AE5F3 #5A98F3 #685AF3
triadic
#5A98F3 #F35A98 #98F35A
tetradic
#5A98F3 #F35AE5 #F3B55A #5AF368
square
#5A98F3 #F35AE5 #F3B55A #5AF368
split-complementary
#5A98F3 #F3685A #E5F35A
monochromatic
#0E58C4 #2174EF #5A98F3 #93BCF7 #CCDFFB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A98F3#FFFFFF#000000##000000
##5A98F31.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)
#709FF7
Deuteranopia (green-blind)
#5B91F1
Tritanopia (blue-blind)
#00ADBA
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5a98f3;
/* rgb */ color: rgb(90, 152, 243);
/* oklch */ color: oklch(68.0% 0.150 257.9);
Tailwind
colors: {
  custom: {
    50: '#96b5f7',
    500: '#5a98f3',
    950: '#000000',
  },
}
SCSS
$custom: #5a98f3;
$custom-light: #96b5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a98f3",
  "rgb": {
    "r": 90,
    "g": 152,
    "b": 243
  },
  "hsl": {
    "h": 215.686,
    "s": 86.441,
    "l": 65.294
  },
  "oklch": {
    "l": 0.67953,
    "c": 0.14985,
    "h": 257.9
  },
  "luminance": 0.31101
}

Semantic roles & 50–950 ramp

primary
#5A98F3
secondary
#EED9BB
accent
#8803E3
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0F1117
muted
#7E8085

Preview Lab

Preview with #5A98F3

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

Preview Lab → · Contrast checker → · Palette generator →

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