#5A81EF#5A81EF

#5A81EF is a light, vivid blue. Relative luminance 0.241; OKLCH L 62.9% C 0.171 H 266.8°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5A81EF
RGBrgb(90, 129, 239)
HSLhsl(224, 82%, 65%)
HSVhsv(224, 62%, 94%)
CMYKcmyk(62.3%, 46%, 0%, 6.3%)
CIE-LABlab(56.19, 20.10, -59.57)
CIE-LCHlch(56.19, 62.87, 288.64°)
OKLaboklab(62.95% -0.0095 -0.1703)
OKLCHoklch(62.95% 0.171 266.8)
XYZxyz(27.6414, 24.1037, 84.8404)
Luminance0.2411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A81EF #EFC85A
analogous
#5ACCEF #5A81EF #7E5AEF
triadic
#5A81EF #EF5A81 #81EF5A
tetradic
#5A81EF #EF5ACC #EFC85A #5AEF7E
square
#5A81EF #EF5ACC #EFC85A #5AEF7E
split-complementary
#5A81EF #EF7E5A #CCEF5A
monochromatic
#123FBC #2256EA #5A81EF #92ACF4 #CAD6FA

Accessibility & contrast

On white

3.61
#5A81EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#5A81EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A81EF
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A81EF#FFFFFF#000000##000000
##5A81EF1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8EF3
Deuteranopia (green-blind)
#3080ED
Tritanopia (blue-blind)
#009AAC
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5a81ef;
/* rgb */ color: rgb(90, 129, 239);
/* oklch */ color: oklch(62.9% 0.171 266.8);
Tailwind
colors: {
  custom: {
    50: '#96a5f5',
    500: '#5a81ef',
    950: '#000000',
  },
}
SCSS
$custom: #5a81ef;
$custom-light: #96a5f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a81ef",
  "rgb": {
    "r": 90,
    "g": 129,
    "b": 239
  },
  "hsl": {
    "h": 224.295,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.62947,
    "c": 0.17055,
    "h": 266.8
  },
  "luminance": 0.24106
}

Semantic roles & 50–950 ramp

primary
#5A81EF
secondary
#ECDFB9
accent
#A607DF
background
#F9FAFF
surface
#F2F4FE
border
#CCCED6
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5A81EF

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

Preview Lab → · Contrast checker → · Palette generator →

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