#5B7BE4#5B7BE4

#5B7BE4 is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.1% C 0.163 H 268.5°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5B7BE4
RGBrgb(91, 123, 228)
HSLhsl(226, 72%, 63%)
HSVhsv(226, 60%, 89%)
CMYKcmyk(60.1%, 46.1%, 0%, 10.6%)
CIE-LABlab(54.02, 20.25, -56.92)
CIE-LCHlch(54.02, 60.41, 289.58°)
OKLaboklab(61.09% -0.0042 -0.1625)
OKLCHoklch(61.09% 0.163 268.5)
XYZxyz(25.3962, 21.9894, 76.2898)
Luminance0.2199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7BE4 #E4C45B
analogous
#5BC0E4 #5B7BE4 #7F5BE4
triadic
#5B7BE4 #E45B7B #7BE45B
tetradic
#5B7BE4 #E45BC0 #E4C45B #5BE47F
square
#5B7BE4 #E45BC0 #E4C45B #5BE47F
split-complementary
#5B7BE4 #E47F5B #C0E45B
monochromatic
#1C3DA9 #2651DB #5B7BE4 #90A5ED #C4D0F5

Accessibility & contrast

On white

3.89
#5B7BE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#5B7BE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7BE4
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7BE4#FFFFFF#000000##000000
##5B7BE41.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4888E8
Deuteranopia (green-blind)
#327BE2
Tritanopia (blue-blind)
#0093A4
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5b7be4;
/* rgb */ color: rgb(91, 123, 228);
/* oklch */ color: oklch(61.1% 0.163 268.5);
Tailwind
colors: {
  custom: {
    50: '#95a0ed',
    500: '#5b7be4',
    950: '#000000',
  },
}
SCSS
$custom: #5b7be4;
$custom-light: #95a0ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7be4",
  "rgb": {
    "r": 91,
    "g": 123,
    "b": 228
  },
  "hsl": {
    "h": 225.985,
    "s": 71.728,
    "l": 62.549
  },
  "oklch": {
    "l": 0.6109,
    "c": 0.1626,
    "h": 268.5
  },
  "luminance": 0.21992
}

Semantic roles & 50–950 ramp

primary
#5B7BE4
secondary
#E6DBB4
accent
#A612D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5B7BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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