#5A7EEB#5A7EEB

#5A7EEB is a light, vivid blue. Relative luminance 0.231; OKLCH L 62.1% C 0.169 H 267.6°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#5A7EEB
RGBrgb(90, 126, 235)
HSLhsl(225, 78%, 64%)
HSVhsv(225, 62%, 92%)
CMYKcmyk(61.7%, 46.4%, 0%, 7.8%)
CIE-LABlab(55.17, 20.58, -58.99)
CIE-LCHlch(55.17, 62.48, 289.23°)
OKLaboklab(62.09% -0.0071 -0.1686)
OKLCHoklch(62.09% 0.169 267.6)
XYZxyz(26.6676, 23.0912, 81.6329)
Luminance0.2309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EEB #EBC75A
analogous
#5AC7EB #5A7EEB #7E5AEB
triadic
#5A7EEB #EB5A7E #7EEB5A
tetradic
#5A7EEB #EB5AC7 #EBC75A #5AEB7E
square
#5A7EEB #EB5AC7 #EBC75A #5AEB7E
split-complementary
#5A7EEB #EB7E5A #C7EB5A
monochromatic
#163DB5 #2353E4 #5A7EEB #91A9F2 #C7D3F8

Accessibility & contrast

On white

3.74
#5A7EEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#5A7EEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EEB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EEB#FFFFFF#000000##000000
##5A7EEB1.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#488BEF
Deuteranopia (green-blind)
#2E7EE9
Tritanopia (blue-blind)
#0097A9
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a7eeb;
/* rgb */ color: rgb(90, 126, 235);
/* oklch */ color: oklch(62.1% 0.169 267.6);
Tailwind
colors: {
  custom: {
    50: '#95a2f2',
    500: '#5a7eeb',
    950: '#000000',
  },
}
SCSS
$custom: #5a7eeb;
$custom-light: #95a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7eeb",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 235
  },
  "hsl": {
    "h": 225.103,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.62087,
    "c": 0.16877,
    "h": 267.6
  },
  "luminance": 0.23094
}

Semantic roles & 50–950 ramp

primary
#5A7EEB
secondary
#EADDB7
accent
#A70BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F17
muted
#7E7E85

Preview Lab

Preview with #5A7EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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