#5A7DEB#5A7DEB

#5A7DEB is a mid, vivid blue. Relative luminance 0.228; OKLCH L 61.9% C 0.170 H 267.9°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5A7DEB
RGBrgb(90, 125, 235)
HSLhsl(226, 78%, 64%)
HSVhsv(226, 62%, 92%)
CMYKcmyk(61.7%, 46.8%, 0%, 7.8%)
CIE-LABlab(54.90, 21.19, -59.41)
CIE-LCHlch(54.90, 63.08, 289.63°)
OKLaboklab(61.89% -0.0062 -0.1699)
OKLCHoklch(61.89% 0.17 267.9)
XYZxyz(26.5404, 22.8367, 81.5904)
Luminance0.2284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7DEB #EBC85A
analogous
#5AC5EB #5A7DEB #7F5AEB
triadic
#5A7DEB #EB5A7D #7DEB5A
tetradic
#5A7DEB #EB5AC5 #EBC85A #5AEB7F
square
#5A7DEB #EB5AC5 #EBC85A #5AEB7F
split-complementary
#5A7DEB #EB7F5A #C5EB5A
monochromatic
#163CB5 #2352E4 #5A7DEB #91A8F2 #C7D3F8

Accessibility & contrast

On white

3.77
#5A7DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#5A7DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7DEB
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7DEB#FFFFFF#000000##000000
##5A7DEB1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#468AEF
Deuteranopia (green-blind)
#2B7DE9
Tritanopia (blue-blind)
#0096A9
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7deb;
/* rgb */ color: rgb(90, 125, 235);
/* oklch */ color: oklch(61.9% 0.170 267.9);
Tailwind
colors: {
  custom: {
    50: '#95a2f2',
    500: '#5a7deb',
    950: '#000000',
  },
}
SCSS
$custom: #5a7deb;
$custom-light: #95a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7deb",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 235
  },
  "hsl": {
    "h": 225.517,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61887,
    "c": 0.16998,
    "h": 267.9
  },
  "luminance": 0.22839
}

Semantic roles & 50–950 ramp

primary
#5A7DEB
secondary
#EADEB7
accent
#A80BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F17
muted
#7E7E85

Preview Lab

Preview with #5A7DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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