#5B81F8#5B81F8

#5B81F8 is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.6% C 0.182 H 267.7°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5B81F8
RGBrgb(91, 129, 248)
HSLhsl(225, 92%, 66%)
HSVhsv(225, 63%, 97%)
CMYKcmyk(63.3%, 48%, 0%, 2.7%)
CIE-LABlab(56.78, 23.29, -63.61)
CIE-LCHlch(56.78, 67.74, 290.11°)
OKLaboklab(63.58% -0.0074 -0.1821)
OKLCHoklch(63.58% 0.182 267.7)
XYZxyz(29.1021, 24.6993, 92.0225)
Luminance0.2470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B81F8 #F8D25B
analogous
#5BCFF8 #5B81F8 #845BF8
triadic
#5B81F8 #F85B81 #81F85B
tetradic
#5B81F8 #F85BCF #F8D25B #5BF884
square
#5B81F8 #F85BCF #F8D25B #5BF884
split-complementary
#5B81F8 #F8845B #CFF85B
monochromatic
#0939D0 #2054F5 #5B81F8 #96AEFB #D0DBFD

Accessibility & contrast

On white

3.54
#5B81F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#5B81F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B81F8
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B81F8#FFFFFF#000000##000000
##5B81F81.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4290FC
Deuteranopia (green-blind)
#1F82F6
Tritanopia (blue-blind)
#009CB1
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5b81f8;
/* rgb */ color: rgb(91, 129, 248);
/* oklch */ color: oklch(63.6% 0.182 267.7);
Tailwind
colors: {
  custom: {
    50: '#98a5fb',
    500: '#5b81f8',
    950: '#000000',
  },
}
SCSS
$custom: #5b81f8;
$custom-light: #98a5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b81f8",
  "rgb": {
    "r": 91,
    "g": 129,
    "b": 248
  },
  "hsl": {
    "h": 225.478,
    "s": 91.813,
    "l": 66.471
  },
  "oklch": {
    "l": 0.63584,
    "c": 0.18229,
    "h": 267.7
  },
  "luminance": 0.24702
}

Semantic roles & 50–950 ramp

primary
#5B81F8
secondary
#F1E5BE
accent
#AE00E6
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #5B81F8

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

Preview Lab → · Contrast checker → · Palette generator →

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