#5A7AEC#5A7AEC

#5A7AEC is a mid, vivid blue. Relative luminance 0.221; OKLCH L 61.4% C 0.175 H 269.0°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5A7AEC
RGBrgb(90, 122, 236)
HSLhsl(227, 79%, 64%)
HSVhsv(227, 62%, 93%)
CMYKcmyk(61.9%, 48.3%, 0%, 7.5%)
CIE-LABlab(54.18, 23.36, -61.13)
CIE-LCHlch(54.18, 65.44, 290.91°)
OKLaboklab(61.36% -0.0031 -0.1749)
OKLCHoklch(61.36% 0.175 269)
XYZxyz(26.3112, 22.1466, 82.2288)
Luminance0.2215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7AEC #ECCC5A
analogous
#5AC3EC #5A7AEC #835AEC
triadic
#5A7AEC #EC5A7A #7AEC5A
tetradic
#5A7AEC #EC5AC3 #ECCC5A #5AEC83
square
#5A7AEC #EC5AC3 #ECCC5A #5AEC83
split-complementary
#5A7AEC #EC835A #C3EC5A
monochromatic
#1538B7 #234EE6 #5A7AEC #91A6F2 #C8D2F9

Accessibility & contrast

On white

3.87
#5A7AEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#5A7AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7AEC
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7AEC#FFFFFF#000000##000000
##5A7AEC1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E88F0
Deuteranopia (green-blind)
#1F7BEA
Tritanopia (blue-blind)
#0094A8
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5a7aec;
/* rgb */ color: rgb(90, 122, 236);
/* oklch */ color: oklch(61.4% 0.175 269.0);
Tailwind
colors: {
  custom: {
    50: '#95a0f3',
    500: '#5a7aec',
    950: '#000000',
  },
}
SCSS
$custom: #5a7aec;
$custom-light: #95a0f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7aec",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 236
  },
  "hsl": {
    "h": 226.849,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61357,
    "c": 0.17498,
    "h": 269
  },
  "luminance": 0.22149
}

Semantic roles & 50–950 ramp

primary
#5A7AEC
secondary
#EBDFB7
accent
#AE0ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5A7AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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