#5A97F1#5A97F1

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

Color values

HEX#5A97F1
RGBrgb(90, 151, 241)
HSLhsl(216, 84%, 65%)
HSVhsv(216, 63%, 95%)
CMYKcmyk(62.7%, 37.3%, 0%, 5.5%)
CIE-LABlab(62.22, 7.61, -51.07)
CIE-LCHlch(62.22, 51.64, 278.48°)
OKLaboklab(67.63% -0.0308 -0.1451)
OKLCHoklch(67.63% 0.148 258)
XYZxyz(31.1546, 30.6548, 87.4772)
Luminance0.3066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A97F1 #F1B45A
analogous
#5AE2F1 #5A97F1 #695AF1
triadic
#5A97F1 #F15A97 #97F15A
tetradic
#5A97F1 #F15AE2 #F1B45A #5AF169
square
#5A97F1 #F15AE2 #F1B45A #5AF169
split-complementary
#5A97F1 #F1695A #E2F15A
monochromatic
#1057C0 #2273EC #5A97F1 #92BBF6 #CBDEFB

Accessibility & contrast

On white

2.94
#5A97F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.13
#5A97F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5A97F1
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A97F1#FFFFFF#000000##000000
##5A97F11.002.947.137.13
#FFFFFF2.941.0021.0021.00
#0000007.1321.001.001.00
##0000007.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#709EF5
Deuteranopia (green-blind)
#5A90EF
Tritanopia (blue-blind)
#00ABB8
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #5a97f1;
/* rgb */ color: rgb(90, 151, 241);
/* oklch */ color: oklch(67.6% 0.148 258.0);
Tailwind
colors: {
  custom: {
    50: '#96b5f6',
    500: '#5a97f1',
    950: '#000000',
  },
}
SCSS
$custom: #5a97f1;
$custom-light: #96b5f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a97f1",
  "rgb": {
    "r": 90,
    "g": 151,
    "b": 241
  },
  "hsl": {
    "h": 215.762,
    "s": 84.358,
    "l": 64.902
  },
  "oklch": {
    "l": 0.67628,
    "c": 0.1483,
    "h": 258
  },
  "luminance": 0.30658
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A97F1

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

Preview Lab → · Contrast checker → · Palette generator →

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