#5A7BEE#5A7BEE

#5A7BEE is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.7% C 0.176 H 268.7°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5A7BEE
RGBrgb(90, 123, 238)
HSLhsl(227, 81%, 64%)
HSVhsv(227, 62%, 93%)
CMYKcmyk(62.2%, 48.3%, 0%, 6.7%)
CIE-LABlab(54.56, 23.42, -61.63)
CIE-LCHlch(54.56, 65.93, 290.80°)
OKLaboklab(61.69% -0.0039 -0.1764)
OKLCHoklch(61.69% 0.176 268.7)
XYZxyz(26.7268, 22.5103, 83.8088)
Luminance0.2251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7BEE #EECD5A
analogous
#5AC5EE #5A7BEE #835AEE
triadic
#5A7BEE #EE5A7B #7BEE5A
tetradic
#5A7BEE #EE5AC5 #EECD5A #5AEE83
square
#5A7BEE #EE5AC5 #EECD5A #5AEE83
split-complementary
#5A7BEE #EE835A #C5EE5A
monochromatic
#1338BA #234FE8 #5A7BEE #91A7F4 #C9D4F9

Accessibility & contrast

On white

3.82
#5A7BEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#5A7BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7BEE
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7BEE#FFFFFF#000000##000000
##5A7BEE1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8AF2
Deuteranopia (green-blind)
#1E7CEC
Tritanopia (blue-blind)
#0095A9
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7bee;
/* rgb */ color: rgb(90, 123, 238);
/* oklch */ color: oklch(61.7% 0.176 268.7);
Tailwind
colors: {
  custom: {
    50: '#96a0f4',
    500: '#5a7bee',
    950: '#000000',
  },
}
SCSS
$custom: #5a7bee;
$custom-light: #96a0f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7bee",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 238
  },
  "hsl": {
    "h": 226.622,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61687,
    "c": 0.17645,
    "h": 268.7
  },
  "luminance": 0.22513
}

Semantic roles & 50–950 ramp

primary
#5A7BEE
secondary
#ECE0B8
accent
#AE08DE
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5A7BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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