#5B81F5#5B81F5

#5B81F5 is a light, vivid blue. Relative luminance 0.245; OKLCH L 63.4% C 0.178 H 267.5°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5B81F5
RGBrgb(91, 129, 245)
HSLhsl(225, 89%, 66%)
HSVhsv(225, 63%, 96%)
CMYKcmyk(62.9%, 47.3%, 0%, 3.9%)
CIE-LABlab(56.60, 22.28, -62.24)
CIE-LCHlch(56.60, 66.11, 289.70°)
OKLaboklab(63.39% -0.0078 -0.1781)
OKLCHoklch(63.39% 0.178 267.5)
XYZxyz(28.6404, 24.5147, 89.5910)
Luminance0.2452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B81F5 #F5CF5B
analogous
#5BCEF5 #5B81F5 #825BF5
triadic
#5B81F5 #F55B81 #81F55B
tetradic
#5B81F5 #F55BCE #F5CF5B #5BF582
square
#5B81F5 #F55BCE #F5CF5B #5BF582
split-complementary
#5B81F5 #F5825B #CEF55B
monochromatic
#0C3BC9 #2155F1 #5B81F5 #95ADF9 #CEDAFC

Accessibility & contrast

On white

3.56
#5B81F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#5B81F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B81F5
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B81F5#FFFFFF#000000##000000
##5B81F51.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#458FF9
Deuteranopia (green-blind)
#2681F3
Tritanopia (blue-blind)
#009CAF
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5b81f5;
/* rgb */ color: rgb(91, 129, 245);
/* oklch */ color: oklch(63.4% 0.178 267.5);
Tailwind
colors: {
  custom: {
    50: '#97a5f9',
    500: '#5b81f5',
    950: '#000000',
  },
}
SCSS
$custom: #5b81f5;
$custom-light: #97a5f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b81f5",
  "rgb": {
    "r": 91,
    "g": 129,
    "b": 245
  },
  "hsl": {
    "h": 225.195,
    "s": 88.506,
    "l": 65.882
  },
  "oklch": {
    "l": 0.63387,
    "c": 0.17829,
    "h": 267.5
  },
  "luminance": 0.24517
}

Semantic roles & 50–950 ramp

primary
#5B81F5
secondary
#EFE3BC
accent
#AD00E5
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #5B81F5

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

Preview Lab → · Contrast checker → · Palette generator →

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