#5B81F1#5B81F1

#5B81F1 is a light, vivid blue. Relative luminance 0.243; OKLCH L 63.1% C 0.173 H 267.2°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5B81F1
RGBrgb(91, 129, 241)
HSLhsl(225, 84%, 65%)
HSVhsv(225, 62%, 95%)
CMYKcmyk(62.2%, 46.5%, 0%, 5.5%)
CIE-LABlab(56.36, 20.94, -60.41)
CIE-LCHlch(56.36, 63.93, 289.12°)
OKLaboklab(63.13% -0.0083 -0.1727)
OKLCHoklch(63.13% 0.173 267.2)
XYZxyz(28.0364, 24.2730, 86.4097)
Luminance0.2428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B81F1 #F1CB5B
analogous
#5BCCF1 #5B81F1 #805BF1
triadic
#5B81F1 #F15B81 #81F15B
tetradic
#5B81F1 #F15BCC #F1CB5B #5BF180
square
#5B81F1 #F15BCC #F1CB5B #5BF180
split-complementary
#5B81F1 #F1805B #CCF15B
monochromatic
#103DC1 #2356EC #5B81F1 #93ACF6 #CCD8FB

Accessibility & contrast

On white

3.59
#5B81F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#5B81F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B81F1
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B81F1#FFFFFF#000000##000000
##5B81F11.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#498EF5
Deuteranopia (green-blind)
#2E81EF
Tritanopia (blue-blind)
#009BAD
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5b81f1;
/* rgb */ color: rgb(91, 129, 241);
/* oklch */ color: oklch(63.1% 0.173 267.2);
Tailwind
colors: {
  custom: {
    50: '#96a5f6',
    500: '#5b81f1',
    950: '#000000',
  },
}
SCSS
$custom: #5b81f1;
$custom-light: #96a5f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b81f1",
  "rgb": {
    "r": 91,
    "g": 129,
    "b": 241
  },
  "hsl": {
    "h": 224.8,
    "s": 84.27,
    "l": 65.098
  },
  "oklch": {
    "l": 0.63127,
    "c": 0.17293,
    "h": 267.2
  },
  "luminance": 0.24276
}

Semantic roles & 50–950 ramp

primary
#5B81F1
secondary
#EDE0BA
accent
#A905E1
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5B81F1

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

Preview Lab → · Contrast checker → · Palette generator →

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