#5B7BDF#5B7BDF

#5B7BDF is a mid, vivid blue. Relative luminance 0.217; OKLCH L 60.8% C 0.156 H 268.2°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5B7BDF
RGBrgb(91, 123, 223)
HSLhsl(225, 67%, 62%)
HSVhsv(225, 59%, 87%)
CMYKcmyk(59.2%, 44.8%, 0%, 12.5%)
CIE-LABlab(53.72, 18.59, -54.58)
CIE-LCHlch(53.72, 57.66, 288.81°)
OKLaboklab(60.77% -0.0049 -0.1557)
OKLCHoklch(60.77% 0.156 268.2)
XYZxyz(24.7121, 21.7157, 72.6870)
Luminance0.2172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7BDF #DFBF5B
analogous
#5BBDDF #5B7BDF #7D5BDF
triadic
#5B7BDF #DF5B7B #7BDF5B
tetradic
#5B7BDF #DF5BBD #DFBF5B #5BDF7D
square
#5B7BDF #DF5BBD #DFBF5B #5BDF7D
split-complementary
#5B7BDF #DF7D5B #BDDF5B
monochromatic
#1F3FA0 #2953D4 #5B7BDF #8EA4E9 #C1CDF3

Accessibility & contrast

On white

3.93
#5B7BDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#5B7BDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7BDF
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7BDF#FFFFFF#000000##000000
##5B7BDF1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D87E3
Deuteranopia (green-blind)
#397BDD
Tritanopia (blue-blind)
#0091A2
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5b7bdf;
/* rgb */ color: rgb(91, 123, 223);
/* oklch */ color: oklch(60.8% 0.156 268.2);
Tailwind
colors: {
  custom: {
    50: '#94a0e9',
    500: '#5b7bdf',
    950: '#000000',
  },
}
SCSS
$custom: #5b7bdf;
$custom-light: #94a0e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7bdf",
  "rgb": {
    "r": 91,
    "g": 123,
    "b": 223
  },
  "hsl": {
    "h": 225.455,
    "s": 67.347,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60773,
    "c": 0.15575,
    "h": 268.2
  },
  "luminance": 0.21718
}

Semantic roles & 50–950 ramp

primary
#5B7BDF
secondary
#E3D8B2
accent
#A216CF
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5B7BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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