#5A7ABC#5A7ABC

#5A7ABC is a mid, moderate blue. Relative luminance 0.197; OKLCH L 58.5% C 0.108 H 263.7°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5A7ABC
RGBrgb(90, 122, 188)
HSLhsl(220, 42%, 55%)
HSVhsv(220, 52%, 74%)
CMYKcmyk(52.1%, 35.1%, 0%, 26.3%)
CIE-LABlab(51.52, 7.59, -38.20)
CIE-LCHlch(51.52, 38.95, 281.24°)
OKLaboklab(58.45% -0.0118 -0.1078)
OKLCHoklch(58.45% 0.108 263.7)
XYZxyz(20.2501, 19.7221, 50.3069)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7ABC #BC9C5A
analogous
#5AABBC #5A7ABC #6B5ABC
triadic
#5A7ABC #BC5A7A #7ABC5A
tetradic
#5A7ABC #BC5AAB #BC9C5A #5ABC6B
square
#5A7ABC #BC5AAB #BC9C5A #5ABC6B
split-complementary
#5A7ABC #BC6B5A #ABBC5A
monochromatic
#2D426F #3F5D9A #5A7ABC #869DCE #B1C0DF

Accessibility & contrast

On white

4.25
#5A7ABC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#5A7ABC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7ABC
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7ABC#FFFFFF#000000##000000
##5A7ABC1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6080BF
Deuteranopia (green-blind)
#5577BB
Tritanopia (blue-blind)
#2A8892
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a7abc;
/* rgb */ color: rgb(90, 122, 188);
/* oklch */ color: oklch(58.5% 0.108 263.7);
Tailwind
colors: {
  custom: {
    50: '#8fa0d0',
    500: '#5a7abc',
    950: '#000000',
  },
}
SCSS
$custom: #5a7abc;
$custom-light: #8fa0d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7abc",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 188
  },
  "hsl": {
    "h": 220.408,
    "s": 42.241,
    "l": 54.51
  },
  "oklch": {
    "l": 0.58451,
    "c": 0.10841,
    "h": 263.7
  },
  "luminance": 0.19724
}

Semantic roles & 50–950 ramp

primary
#5A7ABC
secondary
#CEC0A4
accent
#A956D2
background
#F9F9FC
surface
#F1F2F9
border
#CBCCD2
text
#0D0E14
muted
#7E7E82

Preview Lab

Preview with #5A7ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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