#5A7BB2#5A7BB2

#5A7BB2 is a mid, moderate blue. Relative luminance 0.196; OKLCH L 58.1% C 0.093 H 260.3°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5A7BB2
RGBrgb(90, 123, 178)
HSLhsl(218, 36%, 53%)
HSVhsv(218, 49%, 70%)
CMYKcmyk(49.4%, 30.9%, 0%, 30.2%)
CIE-LABlab(51.33, 3.84, -32.75)
CIE-LCHlch(51.33, 32.97, 276.70°)
OKLaboklab(58.14% -0.0158 -0.0919)
OKLCHoklch(58.14% 0.093 260.3)
XYZxyz(19.3326, 19.5526, 44.8662)
Luminance0.1955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7BB2 #B2915A
analogous
#5AA7B2 #5A7BB2 #655AB2
triadic
#5A7BB2 #B25A7B #7BB25A
tetradic
#5A7BB2 #B25AA7 #B2915A #5AB265
square
#5A7BB2 #B25AA7 #B2915A #5AB265
split-complementary
#5A7BB2 #B2655A #A7B25A
monochromatic
#2E4263 #425E8D #5A7BB2 #849CC5 #ADBED9

Accessibility & contrast

On white

4.28
#5A7BB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#5A7BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7BB2
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7BB2#FFFFFF#000000##000000
##5A7BB21.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#667FB4
Deuteranopia (green-blind)
#5C77B1
Tritanopia (blue-blind)
#33878F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a7bb2;
/* rgb */ color: rgb(90, 123, 178);
/* oklch */ color: oklch(58.1% 0.093 260.3);
Tailwind
colors: {
  custom: {
    50: '#8da0c9',
    500: '#5a7bb2',
    950: '#000000',
  },
}
SCSS
$custom: #5a7bb2;
$custom-light: #8da0c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7bb2",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 178
  },
  "hsl": {
    "h": 217.5,
    "s": 36.364,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58144,
    "c": 0.09326,
    "h": 260.3
  },
  "luminance": 0.19554
}

Semantic roles & 50–950 ramp

primary
#5A7BB2
secondary
#C7B9A1
accent
#A25BCC
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0D0E13
muted
#7D7E82

Preview Lab

Preview with #5A7BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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