#5A7ABE#5A7ABE

#5A7ABE is a mid, moderate blue. Relative luminance 0.198; OKLCH L 58.6% C 0.111 H 264.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5A7ABE
RGBrgb(90, 122, 190)
HSLhsl(221, 43%, 55%)
HSVhsv(221, 53%, 75%)
CMYKcmyk(52.6%, 35.8%, 0%, 25.5%)
CIE-LABlab(51.62, 8.22, -39.19)
CIE-LCHlch(51.62, 40.04, 281.85°)
OKLaboklab(58.56% -0.0114 -0.1106)
OKLCHoklch(58.56% 0.111 264.1)
XYZxyz(20.4671, 19.8090, 51.4502)
Luminance0.1981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7ABE #BE9E5A
analogous
#5AACBE #5A7ABE #6C5ABE
triadic
#5A7ABE #BE5A7A #7ABE5A
tetradic
#5A7ABE #BE5AAC #BE9E5A #5ABE6C
square
#5A7ABE #BE5AAC #BE9E5A #5ABE6C
split-complementary
#5A7ABE #BE6C5A #ACBE5A
monochromatic
#2D4271 #3E5C9D #5A7ABE #869DCF #B2C1E1

Accessibility & contrast

On white

4.23
#5A7ABE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#5A7ABE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7ABE
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7ABE#FFFFFF#000000##000000
##5A7ABE1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F80C1
Deuteranopia (green-blind)
#5477BD
Tritanopia (blue-blind)
#288993
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a7abe;
/* rgb */ color: rgb(90, 122, 190);
/* oklch */ color: oklch(58.6% 0.111 264.1);
Tailwind
colors: {
  custom: {
    50: '#8fa0d2',
    500: '#5a7abe',
    950: '#000000',
  },
}
SCSS
$custom: #5a7abe;
$custom-light: #8fa0d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7abe",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 190
  },
  "hsl": {
    "h": 220.8,
    "s": 43.478,
    "l": 54.902
  },
  "oklch": {
    "l": 0.5856,
    "c": 0.11123,
    "h": 264.1
  },
  "luminance": 0.1981
}

Semantic roles & 50–950 ramp

primary
#5A7ABE
secondary
#CFC1A5
accent
#AB55D3
background
#F9F9FC
surface
#F1F2F9
border
#CBCCD2
text
#0D0E14
muted
#7E7E82

Preview Lab

Preview with #5A7ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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