#5B81ED#5B81ED

#5B81ED is a light, vivid blue. Relative luminance 0.240; OKLCH L 62.9% C 0.168 H 267.0°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5B81ED
RGBrgb(91, 129, 237)
HSLhsl(224, 80%, 64%)
HSVhsv(224, 62%, 93%)
CMYKcmyk(61.6%, 45.6%, 0%, 7.1%)
CIE-LABlab(56.12, 19.60, -58.56)
CIE-LCHlch(56.12, 61.76, 288.50°)
OKLaboklab(62.87% -0.0089 -0.1673)
OKLCHoklch(62.87% 0.168 267)
XYZxyz(27.4455, 24.0367, 83.2976)
Luminance0.2404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B81ED #EDC75B
analogous
#5BCAED #5B81ED #7E5BED
triadic
#5B81ED #ED5B81 #81ED5B
tetradic
#5B81ED #ED5BCA #EDC75B #5BED7E
square
#5B81ED #ED5BCA #EDC75B #5BED7E
split-complementary
#5B81ED #ED7E5B #CAED5B
monochromatic
#143FB9 #2457E7 #5B81ED #92ABF3 #C9D6F9

Accessibility & contrast

On white

3.62
#5B81ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#5B81ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B81ED
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B81ED#FFFFFF#000000##000000
##5B81ED1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8EF1
Deuteranopia (green-blind)
#3480EB
Tritanopia (blue-blind)
#009AAB
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5b81ed;
/* rgb */ color: rgb(91, 129, 237);
/* oklch */ color: oklch(62.9% 0.168 267.0);
Tailwind
colors: {
  custom: {
    50: '#96a5f3',
    500: '#5b81ed',
    950: '#000000',
  },
}
SCSS
$custom: #5b81ed;
$custom-light: #96a5f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b81ed",
  "rgb": {
    "r": 91,
    "g": 129,
    "b": 237
  },
  "hsl": {
    "h": 224.384,
    "s": 80.22,
    "l": 64.314
  },
  "oklch": {
    "l": 0.62871,
    "c": 0.16754,
    "h": 267
  },
  "luminance": 0.24039
}

Semantic roles & 50–950 ramp

primary
#5B81ED
secondary
#EBDEB9
accent
#A509DD
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5B81ED

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

Preview Lab → · Contrast checker → · Palette generator →

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