#5A81EB#5A81EB

#5A81EB is a light, vivid blue. Relative luminance 0.239; OKLCH L 62.7% C 0.165 H 266.5°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#5A81EB
RGBrgb(90, 129, 235)
HSLhsl(224, 78%, 64%)
HSVhsv(224, 62%, 92%)
CMYKcmyk(61.7%, 45.1%, 0%, 7.8%)
CIE-LABlab(55.96, 18.75, -57.72)
CIE-LCHlch(55.96, 60.69, 288.00°)
OKLaboklab(62.69% -0.0101 -0.1648)
OKLCHoklch(62.69% 0.165 266.5)
XYZxyz(27.0570, 23.8700, 81.7627)
Luminance0.2387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A81EB #EBC45A
analogous
#5AC9EB #5A81EB #7B5AEB
triadic
#5A81EB #EB5A81 #81EB5A
tetradic
#5A81EB #EB5AC9 #EBC45A #5AEB7B
square
#5A81EB #EB5AC9 #EBC45A #5AEB7B
split-complementary
#5A81EB #EB7B5A #C9EB5A
monochromatic
#1641B5 #2357E4 #5A81EB #91ABF2 #C7D4F8

Accessibility & contrast

On white

3.64
#5A81EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#5A81EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A81EB
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A81EB#FFFFFF#000000##000000
##5A81EB1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8DEF
Deuteranopia (green-blind)
#3680E9
Tritanopia (blue-blind)
#0099AB
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a81eb;
/* rgb */ color: rgb(90, 129, 235);
/* oklch */ color: oklch(62.7% 0.165 266.5);
Tailwind
colors: {
  custom: {
    50: '#95a5f2',
    500: '#5a81eb',
    950: '#000000',
  },
}
SCSS
$custom: #5a81eb;
$custom-light: #95a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a81eb",
  "rgb": {
    "r": 90,
    "g": 129,
    "b": 235
  },
  "hsl": {
    "h": 223.862,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.62692,
    "c": 0.16516,
    "h": 266.5
  },
  "luminance": 0.23872
}

Semantic roles & 50–950 ramp

primary
#5A81EB
secondary
#EADCB7
accent
#A30BDB
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5A81EB

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

Preview Lab → · Contrast checker → · Palette generator →

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