#5A7AEF#5A7AEF

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

Color values

HEX#5A7AEF
RGBrgb(90, 122, 239)
HSLhsl(227, 82%, 65%)
HSVhsv(227, 62%, 94%)
CMYKcmyk(62.3%, 49%, 0%, 6.3%)
CIE-LABlab(54.37, 24.36, -62.50)
CIE-LCHlch(54.37, 67.08, 291.29°)
OKLaboklab(61.56% -0.0028 -0.179)
OKLCHoklch(61.56% 0.179 269.1)
XYZxyz(26.7507, 22.3224, 84.5435)
Luminance0.2233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7AEF #EFCF5A
analogous
#5AC5EF #5A7AEF #855AEF
triadic
#5A7AEF #EF5A7A #7AEF5A
tetradic
#5A7AEF #EF5AC5 #EFCF5A #5AEF85
square
#5A7AEF #EF5AC5 #EFCF5A #5AEF85
split-complementary
#5A7AEF #EF855A #C5EF5A
monochromatic
#1237BC #224DEA #5A7AEF #92A7F4 #CAD4FA

Accessibility & contrast

On white

3.84
#5A7AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#5A7AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7AEF
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7AEF#FFFFFF#000000##000000
##5A7AEF1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B89F3
Deuteranopia (green-blind)
#167CED
Tritanopia (blue-blind)
#0095A9
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5a7aef;
/* rgb */ color: rgb(90, 122, 239);
/* oklch */ color: oklch(61.6% 0.179 269.1);
Tailwind
colors: {
  custom: {
    50: '#96a0f5',
    500: '#5a7aef',
    950: '#000000',
  },
}
SCSS
$custom: #5a7aef;
$custom-light: #96a0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7aef",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 239
  },
  "hsl": {
    "h": 227.114,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61557,
    "c": 0.17901,
    "h": 269.1
  },
  "luminance": 0.22325
}

Semantic roles & 50–950 ramp

primary
#5A7AEF
secondary
#ECE1B9
accent
#B007DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5A7AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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