#5A7AE2#5A7AE2

#5A7AE2 is a mid, vivid blue. Relative luminance 0.216; OKLCH L 60.7% C 0.161 H 268.4°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5A7AE2
RGBrgb(90, 122, 226)
HSLhsl(226, 70%, 62%)
HSVhsv(226, 60%, 89%)
CMYKcmyk(60.2%, 46%, 0%, 11.4%)
CIE-LABlab(53.58, 20.01, -56.50)
CIE-LCHlch(53.58, 59.94, 289.50°)
OKLaboklab(60.71% -0.0044 -0.1613)
OKLCHoklch(60.71% 0.161 268.4)
XYZxyz(24.8988, 21.5816, 74.7903)
Luminance0.2158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7AE2 #E2C25A
analogous
#5ABEE2 #5A7AE2 #7E5AE2
triadic
#5A7AE2 #E25A7A #7AE25A
tetradic
#5A7AE2 #E25ABE #E2C25A #5AE27E
square
#5A7AE2 #E25ABE #E2C25A #5AE27E
split-complementary
#5A7AE2 #E27E5A #BEE25A
monochromatic
#1D3DA5 #2650D9 #5A7AE2 #8EA4EB #C2CEF4

Accessibility & contrast

On white

3.95
#5A7AE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#5A7AE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7AE2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7AE2#FFFFFF#000000##000000
##5A7AE21.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4886E6
Deuteranopia (green-blind)
#327AE0
Tritanopia (blue-blind)
#0092A3
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a7ae2;
/* rgb */ color: rgb(90, 122, 226);
/* oklch */ color: oklch(60.7% 0.161 268.4);
Tailwind
colors: {
  custom: {
    50: '#94a0ec',
    500: '#5a7ae2',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ae2;
$custom-light: #94a0ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ae2",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 226
  },
  "hsl": {
    "h": 225.882,
    "s": 70.103,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60705,
    "c": 0.1614,
    "h": 268.4
  },
  "luminance": 0.21584
}

Semantic roles & 50–950 ramp

primary
#5A7AE2
secondary
#E5D9B3
accent
#A513D2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A7AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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