#5A7BBB#5A7BBB

#5A7BBB is a mid, moderate blue. Relative luminance 0.199; OKLCH L 58.6% C 0.106 H 262.8°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5A7BBB
RGBrgb(90, 123, 187)
HSLhsl(220, 42%, 54%)
HSVhsv(220, 52%, 73%)
CMYKcmyk(51.9%, 34.2%, 0%, 26.7%)
CIE-LABlab(51.75, 6.67, -37.26)
CIE-LCHlch(51.75, 37.85, 280.14°)
OKLaboklab(58.61% -0.0133 -0.105)
OKLCHoklch(58.61% 0.106 262.8)
XYZxyz(20.2660, 19.9260, 49.7822)
Luminance0.1993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7BBB #BB9A5A
analogous
#5AABBB #5A7BBB #6A5ABB
triadic
#5A7BBB #BB5A7B #7BBB5A
tetradic
#5A7BBB #BB5AAB #BB9A5A #5ABB6A
square
#5A7BBB #BB5AAB #BB9A5A #5ABB6A
split-complementary
#5A7BBB #BB6A5A #ABBB5A
monochromatic
#2D436D #3F5E99 #5A7BBB #859ECD #B1C0DF

Accessibility & contrast

On white

4.21
#5A7BBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#5A7BBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7BBB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7BBB#FFFFFF#000000##000000
##5A7BBB1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6280BE
Deuteranopia (green-blind)
#5777BA
Tritanopia (blue-blind)
#2B8992
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a7bbb;
/* rgb */ color: rgb(90, 123, 187);
/* oklch */ color: oklch(58.6% 0.106 262.8);
Tailwind
colors: {
  custom: {
    50: '#8ea0d0',
    500: '#5a7bbb',
    950: '#000000',
  },
}
SCSS
$custom: #5a7bbb;
$custom-light: #8ea0d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7bbb",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 187
  },
  "hsl": {
    "h": 219.588,
    "s": 41.631,
    "l": 54.314
  },
  "oklch": {
    "l": 0.58615,
    "c": 0.10586,
    "h": 262.8
  },
  "luminance": 0.19927
}

Semantic roles & 50–950 ramp

primary
#5A7BBB
secondary
#CDBFA4
accent
#A856D1
background
#F9F9FC
surface
#F1F2F9
border
#CBCCD2
text
#0D0E14
muted
#7E7E82

Preview Lab

Preview with #5A7BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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