#5B7CE2#5B7CE2

#5B7CE2 is a mid, vivid blue. Relative luminance 0.221; OKLCH L 61.2% C 0.159 H 268.0°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5B7CE2
RGBrgb(91, 124, 226)
HSLhsl(225, 70%, 62%)
HSVhsv(225, 60%, 89%)
CMYKcmyk(59.7%, 45.1%, 0%, 11.4%)
CIE-LABlab(54.16, 18.98, -55.56)
CIE-LCHlch(54.16, 58.71, 288.86°)
OKLaboklab(61.16% -0.0055 -0.1585)
OKLCHoklch(61.16% 0.159 268)
XYZxyz(25.2449, 22.1283, 74.8776)
Luminance0.2213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7CE2 #E2C15B
analogous
#5BC0E2 #5B7CE2 #7D5BE2
triadic
#5B7CE2 #E25B7C #7CE25B
tetradic
#5B7CE2 #E25BC0 #E2C15B #5BE27D
square
#5B7CE2 #E25BC0 #E2C15B #5BE27D
split-complementary
#5B7CE2 #E27D5B #C0E25B
monochromatic
#1D3FA5 #2752D9 #5B7CE2 #8FA6EB #C3CFF4

Accessibility & contrast

On white

3.87
#5B7CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#5B7CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7CE2
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7CE2#FFFFFF#000000##000000
##5B7CE21.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C88E6
Deuteranopia (green-blind)
#377CE0
Tritanopia (blue-blind)
#0093A4
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5b7ce2;
/* rgb */ color: rgb(91, 124, 226);
/* oklch */ color: oklch(61.2% 0.159 268.0);
Tailwind
colors: {
  custom: {
    50: '#94a1ec',
    500: '#5b7ce2',
    950: '#000000',
  },
}
SCSS
$custom: #5b7ce2;
$custom-light: #94a1ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7ce2",
  "rgb": {
    "r": 91,
    "g": 124,
    "b": 226
  },
  "hsl": {
    "h": 225.333,
    "s": 69.948,
    "l": 62.157
  },
  "oklch": {
    "l": 0.61164,
    "c": 0.15865,
    "h": 268
  },
  "luminance": 0.2213
}

Semantic roles & 50–950 ramp

primary
#5B7CE2
secondary
#E5D9B4
accent
#A314D2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5B7CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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