#5A81FF#5A81FF

#5A81FF is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.0% C 0.192 H 267.8°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#5A81FF
RGBrgb(90, 129, 255)
HSLhsl(226, 100%, 68%)
HSVhsv(226, 65%, 100%)
CMYKcmyk(64.7%, 49.4%, 0%, 0%)
CIE-LABlab(57.16, 25.49, -66.85)
CIE-LCHlch(57.16, 71.55, 290.87°)
OKLaboklab(64% -0.0075 -0.1917)
OKLCHoklch(64% 0.192 267.8)
XYZxyz(30.1105, 25.0914, 97.8447)
Luminance0.2509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A81FF #FFD85A
analogous
#5AD4FF #5A81FF #855AFF
triadic
#5A81FF #FF5A81 #81FF5A
tetradic
#5A81FF #FF5AD4 #FFD85A #5AFF85
square
#5A81FF #FF5AD4 #FFD85A #5AFF85
split-complementary
#5A81FF #FF855A #D4FF5A
monochromatic
#0035DF #1D52FF #5A81FF #97B0FF #D4DEFF

Accessibility & contrast

On white

3.49
#5A81FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#5A81FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A81FF
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A81FF#FFFFFF#000000##000000
##5A81FF1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A91FF
Deuteranopia (green-blind)
#0082FC
Tritanopia (blue-blind)
#009EB4
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5a81ff;
/* rgb */ color: rgb(90, 129, 255);
/* oklch */ color: oklch(64.0% 0.192 267.8);
Tailwind
colors: {
  custom: {
    50: '#98a5ff',
    500: '#5a81ff',
    950: '#000000',
  },
}
SCSS
$custom: #5a81ff;
$custom-light: #98a5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5a81ff",
  "rgb": {
    "r": 90,
    "g": 129,
    "b": 255
  },
  "hsl": {
    "h": 225.818,
    "s": 100,
    "l": 67.647
  },
  "oklch": {
    "l": 0.64,
    "c": 0.19186,
    "h": 267.8
  },
  "luminance": 0.25094
}

Semantic roles & 50–950 ramp

primary
#5A81FF
secondary
#F4E8C1
accent
#AF00E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F0F18
muted
#7F7F86

Preview Lab

Preview with #5A81FF

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

Preview Lab → · Contrast checker → · Palette generator →

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