#5A7AEB#5A7AEB

#5A7AEB is a mid, vivid blue. Relative luminance 0.221; OKLCH L 61.3% C 0.174 H 268.9°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5A7AEB
RGBrgb(90, 122, 235)
HSLhsl(227, 78%, 64%)
HSVhsv(227, 62%, 92%)
CMYKcmyk(61.7%, 48.1%, 0%, 7.8%)
CIE-LABlab(54.12, 23.02, -60.67)
CIE-LCHlch(54.12, 64.89, 290.78°)
OKLaboklab(61.29% -0.0033 -0.1736)
OKLCHoklch(61.29% 0.174 268.9)
XYZxyz(26.1663, 22.0886, 81.4658)
Luminance0.2209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7AEB #EBCB5A
analogous
#5AC2EB #5A7AEB #825AEB
triadic
#5A7AEB #EB5A7A #7AEB5A
tetradic
#5A7AEB #EB5AC2 #EBCB5A #5AEB82
square
#5A7AEB #EB5AC2 #EBCB5A #5AEB82
split-complementary
#5A7AEB #EB825A #C2EB5A
monochromatic
#1639B5 #234EE4 #5A7AEB #91A6F2 #C7D2F8

Accessibility & contrast

On white

3.88
#5A7AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#5A7AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7AEB
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7AEB#FFFFFF#000000##000000
##5A7AEB1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F88EF
Deuteranopia (green-blind)
#227BE9
Tritanopia (blue-blind)
#0094A7
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a7aeb;
/* rgb */ color: rgb(90, 122, 235);
/* oklch */ color: oklch(61.3% 0.174 268.9);
Tailwind
colors: {
  custom: {
    50: '#95a0f2',
    500: '#5a7aeb',
    950: '#000000',
  },
}
SCSS
$custom: #5a7aeb;
$custom-light: #95a0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7aeb",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 235
  },
  "hsl": {
    "h": 226.759,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61291,
    "c": 0.17363,
    "h": 268.9
  },
  "luminance": 0.22091
}

Semantic roles & 50–950 ramp

primary
#5A7AEB
secondary
#EADFB7
accent
#AD0BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5A7AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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