#5A7DB2#5A7DB2

#5A7DB2 is a mid, moderate blue. Relative luminance 0.201; OKLCH L 58.6% C 0.091 H 258.5°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5A7DB2
RGBrgb(90, 125, 178)
HSLhsl(216, 36%, 53%)
HSVhsv(216, 49%, 70%)
CMYKcmyk(49.4%, 29.8%, 0%, 30.2%)
CIE-LABlab(51.90, 2.65, -31.85)
CIE-LCHlch(51.90, 31.96, 274.76°)
OKLaboklab(58.59% -0.0182 -0.0893)
OKLCHoklch(58.59% 0.091 258.5)
XYZxyz(19.5833, 20.0539, 44.9497)
Luminance0.2006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7DB2 #B28F5A
analogous
#5AA9B2 #5A7DB2 #635AB2
triadic
#5A7DB2 #B25A7D #7DB25A
tetradic
#5A7DB2 #B25AA9 #B28F5A #5AB263
square
#5A7DB2 #B25AA9 #B28F5A #5AB263
split-complementary
#5A7DB2 #B2635A #A9B25A
monochromatic
#2E4363 #42608D #5A7DB2 #849EC5 #ADBFD9

Accessibility & contrast

On white

4.19
#5A7DB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#5A7DB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7DB2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7DB2#FFFFFF#000000##000000
##5A7DB21.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6980B4
Deuteranopia (green-blind)
#5E78B1
Tritanopia (blue-blind)
#338990
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5a7db2;
/* rgb */ color: rgb(90, 125, 178);
/* oklch */ color: oklch(58.6% 0.091 258.5);
Tailwind
colors: {
  custom: {
    50: '#8da2c9',
    500: '#5a7db2',
    950: '#000000',
  },
}
SCSS
$custom: #5a7db2;
$custom-light: #8da2c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7db2",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 178
  },
  "hsl": {
    "h": 216.136,
    "s": 36.364,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58589,
    "c": 0.09117,
    "h": 258.5
  },
  "luminance": 0.20055
}

Semantic roles & 50–950 ramp

primary
#5A7DB2
secondary
#C7B8A1
accent
#9F5BCC
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0D0F13
muted
#7D7E82

Preview Lab

Preview with #5A7DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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