#5B97F2#5B97F2

#5B97F2 is a light, vivid blue. Relative luminance 0.308; OKLCH L 67.7% C 0.149 H 258.5°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5B97F2
RGBrgb(91, 151, 242)
HSLhsl(216, 85%, 65%)
HSVhsv(216, 62%, 95%)
CMYKcmyk(62.4%, 37.6%, 0%, 5.1%)
CIE-LABlab(62.31, 8.12, -51.47)
CIE-LCHlch(62.31, 52.11, 278.96°)
OKLaboklab(67.73% -0.0297 -0.1462)
OKLCHoklch(67.73% 0.149 258.5)
XYZxyz(31.4023, 30.7652, 88.2706)
Luminance0.3077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B97F2 #F2B65B
analogous
#5BE2F2 #5B97F2 #6A5BF2
triadic
#5B97F2 #F25B97 #97F25B
tetradic
#5B97F2 #F25BE2 #F2B65B #5BF26A
square
#5B97F2 #F25BE2 #F2B65B #5BF26A
split-complementary
#5B97F2 #F26A5B #E2F25B
monochromatic
#0F57C3 #2273EE #5B97F2 #94BBF6 #CCDFFB

Accessibility & contrast

On white

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

On black

7.15
#5B97F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5B97F2
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B97F2#FFFFFF#000000##000000
##5B97F21.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9EF6
Deuteranopia (green-blind)
#5A90F0
Tritanopia (blue-blind)
#00ACB9
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5b97f2;
/* rgb */ color: rgb(91, 151, 242);
/* oklch */ color: oklch(67.7% 0.149 258.5);
Tailwind
colors: {
  custom: {
    50: '#96b5f7',
    500: '#5b97f2',
    950: '#000000',
  },
}
SCSS
$custom: #5b97f2;
$custom-light: #96b5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b97f2",
  "rgb": {
    "r": 91,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 216.159,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.6773,
    "c": 0.14922,
    "h": 258.5
  },
  "luminance": 0.30768
}

Semantic roles & 50–950 ramp

primary
#5B97F2
secondary
#EEDABB
accent
#8A04E2
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0F1117
muted
#7E8085

Preview Lab

Preview with #5B97F2

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

Preview Lab → · Contrast checker → · Palette generator →

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