#5B81EF#5B81EF

#5B81EF is a light, vivid blue. Relative luminance 0.242; OKLCH L 63.0% C 0.170 H 267.1°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#5B81EF
RGBrgb(91, 129, 239)
HSLhsl(225, 82%, 65%)
HSVhsv(225, 62%, 94%)
CMYKcmyk(61.9%, 46%, 0%, 6.3%)
CIE-LABlab(56.24, 20.27, -59.49)
CIE-LCHlch(56.24, 62.85, 288.82°)
OKLaboklab(63% -0.0086 -0.17)
OKLCHoklch(63% 0.17 267.1)
XYZxyz(27.7393, 24.1542, 84.8450)
Luminance0.2416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B81EF #EFC95B
analogous
#5BCBEF #5B81EF #7F5BEF
triadic
#5B81EF #EF5B81 #81EF5B
tetradic
#5B81EF #EF5BCB #EFC95B #5BEF7F
square
#5B81EF #EF5BCB #EFC95B #5BEF7F
split-complementary
#5B81EF #EF7F5B #CBEF5B
monochromatic
#123EBD #2356EA #5B81EF #93ACF4 #CBD7FA

Accessibility & contrast

On white

3.60
#5B81EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#5B81EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B81EF
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B81EF#FFFFFF#000000##000000
##5B81EF1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b81ef;
/* rgb */ color: rgb(91, 129, 239);
/* oklch */ color: oklch(63.0% 0.170 267.1);
Tailwind
colors: {
  custom: {
    50: '#96a5f5',
    500: '#5b81ef',
    950: '#000000',
  },
}
SCSS
$custom: #5b81ef;
$custom-light: #96a5f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b81ef",
  "rgb": {
    "r": 91,
    "g": 129,
    "b": 239
  },
  "hsl": {
    "h": 224.595,
    "s": 82.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.62999,
    "c": 0.17024,
    "h": 267.1
  },
  "luminance": 0.24157
}

Semantic roles & 50–950 ramp

primary
#5B81EF
secondary
#ECDFBA
accent
#A707DF
background
#F9FAFF
surface
#F2F4FE
border
#CCCED6
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5B81EF

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

Preview Lab → · Contrast checker → · Palette generator →

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