#5B7BEB#5B7BEB

#5B7BEB is a mid, vivid blue. Relative luminance 0.224; OKLCH L 61.5% C 0.172 H 268.9°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5B7BEB
RGBrgb(91, 123, 235)
HSLhsl(227, 78%, 64%)
HSVhsv(227, 61%, 92%)
CMYKcmyk(61.3%, 47.7%, 0%, 7.8%)
CIE-LABlab(54.43, 22.58, -60.16)
CIE-LCHlch(54.43, 64.26, 290.58°)
OKLaboklab(61.54% -0.0033 -0.1721)
OKLCHoklch(61.54% 0.172 268.9)
XYZxyz(26.3877, 22.3860, 81.5115)
Luminance0.2239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7BEB #EBCB5B
analogous
#5BC3EB #5B7BEB #835BEB
triadic
#5B7BEB #EB5B7B #7BEB5B
tetradic
#5B7BEB #EB5BC3 #EBCB5B #5BEB83
square
#5B7BEB #EB5BC3 #EBCB5B #5BEB83
split-complementary
#5B7BEB #EB835B #C3EB5B
monochromatic
#163AB5 #244FE4 #5B7BEB #92A7F2 #C8D3F8

Accessibility & contrast

On white

3.83
#5B7BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#5B7BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7BEB
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7BEB#FFFFFF#000000##000000
##5B7BEB1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4289EF
Deuteranopia (green-blind)
#267CE9
Tritanopia (blue-blind)
#0095A8
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5b7beb;
/* rgb */ color: rgb(91, 123, 235);
/* oklch */ color: oklch(61.5% 0.172 268.9);
Tailwind
colors: {
  custom: {
    50: '#96a0f2',
    500: '#5b7beb',
    950: '#000000',
  },
}
SCSS
$custom: #5b7beb;
$custom-light: #96a0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7beb",
  "rgb": {
    "r": 91,
    "g": 123,
    "b": 235
  },
  "hsl": {
    "h": 226.667,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61543,
    "c": 0.17211,
    "h": 268.9
  },
  "luminance": 0.22388
}

Semantic roles & 50–950 ramp

primary
#5B7BEB
secondary
#EADFB8
accent
#AC0BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5B7BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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