#5B7BF1#5B7BF1

#5B7BF1 is a mid, vivid blue. Relative luminance 0.227; OKLCH L 61.9% C 0.180 H 269.2°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#5B7BF1
RGBrgb(91, 123, 241)
HSLhsl(227, 84%, 65%)
HSVhsv(227, 62%, 95%)
CMYKcmyk(62.2%, 49%, 0%, 5.5%)
CIE-LABlab(54.80, 24.59, -62.91)
CIE-LCHlch(54.80, 67.55, 291.35°)
OKLaboklab(61.94% -0.0026 -0.1802)
OKLCHoklch(61.94% 0.18 269.2)
XYZxyz(27.2691, 22.7386, 86.1540)
Luminance0.2274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7BF1 #F1D15B
analogous
#5BC6F1 #5B7BF1 #865BF1
triadic
#5B7BF1 #F15B7B #7BF15B
tetradic
#5B7BF1 #F15BC6 #F1D15B #5BF186
square
#5B7BF1 #F15BC6 #F1D15B #5BF186
split-complementary
#5B7BF1 #F1865B #C6F15B
monochromatic
#1036C1 #234EEC #5B7BF1 #93A8F6 #CCD6FB

Accessibility & contrast

On white

3.79
#5B7BF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#5B7BF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7BF1
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7BF1#FFFFFF#000000##000000
##5B7BF11.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8AF5
Deuteranopia (green-blind)
#177DEF
Tritanopia (blue-blind)
#0096AB
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5b7bf1;
/* rgb */ color: rgb(91, 123, 241);
/* oklch */ color: oklch(61.9% 0.180 269.2);
Tailwind
colors: {
  custom: {
    50: '#97a0f6',
    500: '#5b7bf1',
    950: '#000000',
  },
}
SCSS
$custom: #5b7bf1;
$custom-light: #97a0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7bf1",
  "rgb": {
    "r": 91,
    "g": 123,
    "b": 241
  },
  "hsl": {
    "h": 227.2,
    "s": 84.27,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61941,
    "c": 0.18019,
    "h": 269.2
  },
  "luminance": 0.22741
}

Semantic roles & 50–950 ramp

primary
#5B7BF1
secondary
#EDE2BA
accent
#B205E1
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5B7BF1

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

Preview Lab → · Contrast checker → · Palette generator →

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