#5A7AE8#5A7AE8

#5A7AE8 is a mid, vivid blue. Relative luminance 0.219; OKLCH L 61.1% C 0.170 H 268.8°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5A7AE8
RGBrgb(90, 122, 232)
HSLhsl(226, 76%, 63%)
HSVhsv(226, 61%, 91%)
CMYKcmyk(61.2%, 47.4%, 0%, 9%)
CIE-LABlab(53.94, 22.02, -59.29)
CIE-LCHlch(53.94, 63.24, 290.37°)
OKLaboklab(61.09% -0.0036 -0.1695)
OKLCHoklch(61.09% 0.17 268.8)
XYZxyz(25.7365, 21.9167, 79.2024)
Luminance0.2192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7AE8 #E8C85A
analogous
#5AC1E8 #5A7AE8 #815AE8
triadic
#5A7AE8 #E85A7A #7AE85A
tetradic
#5A7AE8 #E85AC1 #E8C85A #5AE881
square
#5A7AE8 #E85AC1 #E8C85A #5AE881
split-complementary
#5A7AE8 #E8815A #C1E85A
monochromatic
#183AAF #244FE1 #5A7AE8 #90A5EF #C5D1F7

Accessibility & contrast

On white

3.90
#5A7AE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#5A7AE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7AE8
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7AE8#FFFFFF#000000##000000
##5A7AE81.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4288EC
Deuteranopia (green-blind)
#287BE6
Tritanopia (blue-blind)
#0093A6
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a7ae8;
/* rgb */ color: rgb(90, 122, 232);
/* oklch */ color: oklch(61.1% 0.170 268.8);
Tailwind
colors: {
  custom: {
    50: '#95a0f0',
    500: '#5a7ae8',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ae8;
$custom-light: #95a0f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ae8",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 232
  },
  "hsl": {
    "h": 226.479,
    "s": 75.532,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61093,
    "c": 0.16957,
    "h": 268.8
  },
  "luminance": 0.21919
}

Semantic roles & 50–950 ramp

primary
#5A7AE8
secondary
#E8DDB5
accent
#AA0ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5A7AE8

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

Preview Lab → · Contrast checker → · Palette generator →

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