#5B7DCA#5B7DCA

#5B7DCA is a mid, vivid blue. Relative luminance 0.212; OKLCH L 59.9% C 0.124 H 264.9°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#5B7DCA
RGBrgb(91, 125, 202)
HSLhsl(222, 51%, 57%)
HSVhsv(222, 55%, 79%)
CMYKcmyk(55%, 38.1%, 0%, 20.8%)
CIE-LABlab(53.12, 10.49, -43.68)
CIE-LCHlch(53.12, 44.92, 283.50°)
OKLaboklab(59.93% -0.0111 -0.1237)
OKLCHoklch(59.93% 0.124 264.9)
XYZxyz(22.3051, 21.1540, 58.7734)
Luminance0.2116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7DCA #CAA85B
analogous
#5BB4CA #5B7DCA #715BCA
triadic
#5B7DCA #CA5B7D #7DCA5B
tetradic
#5B7DCA #CA5BB4 #CAA85B #5BCA71
square
#5B7DCA #CA5BB4 #CAA85B #5BCA71
split-complementary
#5B7DCA #CA715B #B4CA5B
monochromatic
#2A4481 #395DAF #5B7DCA #89A2D9 #B8C6E8

Accessibility & contrast

On white

4.01
#5B7DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#5B7DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7DCA
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7DCA#FFFFFF#000000##000000
##5B7DCA1.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E84CD
Deuteranopia (green-blind)
#507AC8
Tritanopia (blue-blind)
#198E9A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5b7dca;
/* rgb */ color: rgb(91, 125, 202);
/* oklch */ color: oklch(59.9% 0.124 264.9);
Tailwind
colors: {
  custom: {
    50: '#91a2da',
    500: '#5b7dca',
    950: '#000000',
  },
}
SCSS
$custom: #5b7dca;
$custom-light: #91a2da;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7dca",
  "rgb": {
    "r": 91,
    "g": 125,
    "b": 202
  },
  "hsl": {
    "h": 221.622,
    "s": 51.152,
    "l": 57.451
  },
  "oklch": {
    "l": 0.59933,
    "c": 0.12418,
    "h": 264.9
  },
  "luminance": 0.21156
}

Semantic roles & 50–950 ramp

primary
#5B7DCA
secondary
#D7C9AA
accent
#AF4DDB
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0F15
muted
#7E7E83

Preview Lab

Preview with #5B7DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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