#5A7BCB#5A7BCB

#5A7BCB is a mid, vivid blue. Relative luminance 0.207; OKLCH L 59.5% C 0.128 H 265.7°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5A7BCB
RGBrgb(90, 123, 203)
HSLhsl(222, 52%, 57%)
HSVhsv(222, 56%, 80%)
CMYKcmyk(55.7%, 39.4%, 0%, 20.4%)
CIE-LABlab(52.56, 11.81, -45.12)
CIE-LCHlch(52.56, 46.64, 284.67°)
OKLaboklab(59.51% -0.0095 -0.128)
OKLCHoklch(59.51% 0.128 265.7)
XYZxyz(22.0753, 20.6497, 59.3108)
Luminance0.2065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7BCB #CBAA5A
analogous
#5AB3CB #5A7BCB #725ACB
triadic
#5A7BCB #CB5A7B #7BCB5A
tetradic
#5A7BCB #CB5AB3 #CBAA5A #5ACB72
square
#5A7BCB #CB5AB3 #CBAA5A #5ACB72
split-complementary
#5A7BCB #CB725A #B3CB5A
monochromatic
#294382 #385BB0 #5A7BCB #89A0DA #B7C5E8

Accessibility & contrast

On white

4.09
#5A7BCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#5A7BCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7BCB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7BCB#FFFFFF#000000##000000
##5A7BCB1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A83CE
Deuteranopia (green-blind)
#4C79C9
Tritanopia (blue-blind)
#138D99
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5a7bcb;
/* rgb */ color: rgb(90, 123, 203);
/* oklch */ color: oklch(59.5% 0.128 265.7);
Tailwind
colors: {
  custom: {
    50: '#91a0db',
    500: '#5a7bcb',
    950: '#000000',
  },
}
SCSS
$custom: #5a7bcb;
$custom-light: #91a0db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7bcb",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 203
  },
  "hsl": {
    "h": 222.478,
    "s": 52.074,
    "l": 57.451
  },
  "oklch": {
    "l": 0.59508,
    "c": 0.12833,
    "h": 265.7
  },
  "luminance": 0.20651
}

Semantic roles & 50–950 ramp

primary
#5A7BCB
secondary
#D7CAAA
accent
#B24CDC
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5A7BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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