#5B7BE5#5B7BE5

#5B7BE5 is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.2% C 0.164 H 268.6°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#5B7BE5
RGBrgb(91, 123, 229)
HSLhsl(226, 73%, 63%)
HSVhsv(226, 60%, 90%)
CMYKcmyk(60.3%, 46.3%, 0%, 10.2%)
CIE-LABlab(54.07, 20.58, -57.39)
CIE-LCHlch(54.07, 60.97, 289.73°)
OKLaboklab(61.15% -0.0041 -0.1639)
OKLCHoklch(61.15% 0.164 268.6)
XYZxyz(25.5354, 22.0451, 77.0230)
Luminance0.2205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7BE5 #E5C55B
analogous
#5BC0E5 #5B7BE5 #805BE5
triadic
#5B7BE5 #E55B7B #7BE55B
tetradic
#5B7BE5 #E55BC0 #E5C55B #5BE580
square
#5B7BE5 #E55BC0 #E5C55B #5BE580
split-complementary
#5B7BE5 #E5805B #C0E55B
monochromatic
#1B3CAB #2650DD #5B7BE5 #90A6ED #C5D0F6

Accessibility & contrast

On white

3.88
#5B7BE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#5B7BE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7BE5
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7BE5#FFFFFF#000000##000000
##5B7BE51.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4788E9
Deuteranopia (green-blind)
#317BE3
Tritanopia (blue-blind)
#0093A5
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5b7be5;
/* rgb */ color: rgb(91, 123, 229);
/* oklch */ color: oklch(61.2% 0.164 268.6);
Tailwind
colors: {
  custom: {
    50: '#95a0ee',
    500: '#5b7be5',
    950: '#000000',
  },
}
SCSS
$custom: #5b7be5;
$custom-light: #95a0ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7be5",
  "rgb": {
    "r": 91,
    "g": 123,
    "b": 229
  },
  "hsl": {
    "h": 226.087,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61154,
    "c": 0.16396,
    "h": 268.6
  },
  "luminance": 0.22047
}

Semantic roles & 50–950 ramp

primary
#5B7BE5
secondary
#E7DBB5
accent
#A711D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5B7BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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