#5A7AEE#5A7AEE

#5A7AEE is a mid, vivid blue. Relative luminance 0.223; OKLCH L 61.5% C 0.178 H 269.1°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5A7AEE
RGBrgb(90, 122, 238)
HSLhsl(227, 81%, 64%)
HSVhsv(227, 62%, 93%)
CMYKcmyk(62.2%, 48.7%, 0%, 6.7%)
CIE-LABlab(54.31, 24.03, -62.04)
CIE-LCHlch(54.31, 66.53, 291.17°)
OKLaboklab(61.49% -0.0029 -0.1776)
OKLCHoklch(61.49% 0.178 269.1)
XYZxyz(26.6034, 22.2635, 83.7677)
Luminance0.2227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7AEE #EECE5A
analogous
#5AC4EE #5A7AEE #845AEE
triadic
#5A7AEE #EE5A7A #7AEE5A
tetradic
#5A7AEE #EE5AC4 #EECE5A #5AEE84
square
#5A7AEE #EE5AC4 #EECE5A #5AEE84
split-complementary
#5A7AEE #EE845A #C4EE5A
monochromatic
#1337BA #234DE8 #5A7AEE #91A7F4 #C9D3F9

Accessibility & contrast

On white

3.85
#5A7AEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#5A7AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7AEE
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7AEE#FFFFFF#000000##000000
##5A7AEE1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C89F2
Deuteranopia (green-blind)
#1A7CEC
Tritanopia (blue-blind)
#0095A9
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5a7aee;
/* rgb */ color: rgb(90, 122, 238);
/* oklch */ color: oklch(61.5% 0.178 269.1);
Tailwind
colors: {
  custom: {
    50: '#96a0f4',
    500: '#5a7aee',
    950: '#000000',
  },
}
SCSS
$custom: #5a7aee;
$custom-light: #96a0f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7aee",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 238
  },
  "hsl": {
    "h": 227.027,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.6149,
    "c": 0.17767,
    "h": 269.1
  },
  "luminance": 0.22266
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A7AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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