#5B81EA#5B81EA

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

Color values

HEX#5B81EA
RGBrgb(91, 129, 234)
HSLhsl(224, 77%, 64%)
HSVhsv(224, 61%, 92%)
CMYKcmyk(61.1%, 44.9%, 0%, 8.2%)
CIE-LABlab(55.95, 18.60, -57.17)
CIE-LCHlch(55.95, 60.12, 288.02°)
OKLaboklab(62.68% -0.0093 -0.1632)
OKLCHoklch(62.68% 0.163 266.7)
XYZxyz(27.0108, 23.8628, 81.0085)
Luminance0.2387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B81EA #EAC45B
analogous
#5BC8EA #5B81EA #7C5BEA
triadic
#5B81EA #EA5B81 #81EA5B
tetradic
#5B81EA #EA5BC8 #EAC45B #5BEA7C
square
#5B81EA #EA5BC8 #EAC45B #5BEA7C
split-complementary
#5B81EA #EA7C5B #C8EA5B
monochromatic
#1741B4 #2557E3 #5B81EA #91ABF1 #C8D4F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B81EA#FFFFFF#000000##000000
##5B81EA1.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)
#4F8DEE
Deuteranopia (green-blind)
#3880E8
Tritanopia (blue-blind)
#0099AA
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5b81ea;
/* rgb */ color: rgb(91, 129, 234);
/* oklch */ color: oklch(62.7% 0.163 266.7);
Tailwind
colors: {
  custom: {
    50: '#95a5f1',
    500: '#5b81ea',
    950: '#000000',
  },
}
SCSS
$custom: #5b81ea;
$custom-light: #95a5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b81ea",
  "rgb": {
    "r": 91,
    "g": 129,
    "b": 234
  },
  "hsl": {
    "h": 224.056,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.62682,
    "c": 0.16349,
    "h": 266.7
  },
  "luminance": 0.23865
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B81EA

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

Preview Lab → · Contrast checker → · Palette generator →

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