#5B7AEE#5B7AEE

#5B7AEE is a mid, vivid blue. Relative luminance 0.223; OKLCH L 61.5% C 0.177 H 269.4°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#5B7AEE
RGBrgb(91, 122, 238)
HSLhsl(227, 81%, 65%)
HSVhsv(227, 62%, 93%)
CMYKcmyk(61.8%, 48.7%, 0%, 6.7%)
CIE-LABlab(54.36, 24.20, -61.96)
CIE-LCHlch(54.36, 66.51, 291.33°)
OKLaboklab(61.55% -0.002 -0.1774)
OKLCHoklch(61.55% 0.177 269.4)
XYZxyz(26.7013, 22.3140, 83.7723)
Luminance0.2232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7AEE #EECF5B
analogous
#5BC3EE #5B7AEE #865BEE
triadic
#5B7AEE #EE5B7A #7AEE5B
tetradic
#5B7AEE #EE5BC3 #EECF5B #5BEE86
square
#5B7AEE #EE5BC3 #EECF5B #5BEE86
split-complementary
#5B7AEE #EE865B #C3EE5B
monochromatic
#1337BB #244DE8 #5B7AEE #92A7F4 #CAD4F9

Accessibility & contrast

On white

3.84
#5B7AEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#5B7AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7AEE
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7AEE#FFFFFF#000000##000000
##5B7AEE1.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C89F2
Deuteranopia (green-blind)
#1B7CEC
Tritanopia (blue-blind)
#0095A9
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5b7aee;
/* rgb */ color: rgb(91, 122, 238);
/* oklch */ color: oklch(61.5% 0.177 269.4);
Tailwind
colors: {
  custom: {
    50: '#96a0f4',
    500: '#5b7aee',
    950: '#000000',
  },
}
SCSS
$custom: #5b7aee;
$custom-light: #96a0f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7aee",
  "rgb": {
    "r": 91,
    "g": 122,
    "b": 238
  },
  "hsl": {
    "h": 227.347,
    "s": 81.215,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61545,
    "c": 0.17738,
    "h": 269.4
  },
  "luminance": 0.22316
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B7AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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