#5B7BEE#5B7BEE

#5B7BEE is a mid, vivid blue. Relative luminance 0.226; OKLCH L 61.7% C 0.176 H 269.1°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5B7BEE
RGBrgb(91, 123, 238)
HSLhsl(227, 81%, 65%)
HSVhsv(227, 62%, 93%)
CMYKcmyk(61.8%, 48.3%, 0%, 6.7%)
CIE-LABlab(54.62, 23.59, -61.54)
CIE-LCHlch(54.62, 65.91, 290.97°)
OKLaboklab(61.74% -0.0029 -0.1761)
OKLCHoklch(61.74% 0.176 269.1)
XYZxyz(26.8247, 22.5608, 83.8134)
Luminance0.2256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7BEE #EECE5B
analogous
#5BC4EE #5B7BEE #855BEE
triadic
#5B7BEE #EE5B7B #7BEE5B
tetradic
#5B7BEE #EE5BC4 #EECE5B #5BEE85
square
#5B7BEE #EE5BC4 #EECE5B #5BEE85
split-complementary
#5B7BEE #EE855B #C4EE5B
monochromatic
#1338BB #244EE8 #5B7BEE #92A8F4 #CAD4F9

Accessibility & contrast

On white

3.81
#5B7BEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#5B7BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7BEE
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7BEE#FFFFFF#000000##000000
##5B7BEE1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8AF2
Deuteranopia (green-blind)
#1F7CEC
Tritanopia (blue-blind)
#0095A9
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5b7bee;
/* rgb */ color: rgb(91, 123, 238);
/* oklch */ color: oklch(61.7% 0.176 269.1);
Tailwind
colors: {
  custom: {
    50: '#96a0f4',
    500: '#5b7bee',
    950: '#000000',
  },
}
SCSS
$custom: #5b7bee;
$custom-light: #96a0f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7bee",
  "rgb": {
    "r": 91,
    "g": 123,
    "b": 238
  },
  "hsl": {
    "h": 226.939,
    "s": 81.215,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61741,
    "c": 0.17615,
    "h": 269.1
  },
  "luminance": 0.22563
}

Semantic roles & 50–950 ramp

primary
#5B7BEE
secondary
#ECE1B9
accent
#AF08DE
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5B7BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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