#5B81FA#5B81FA

#5B81FA is a light, vivid blue. Relative luminance 0.248; OKLCH L 63.7% C 0.185 H 267.8°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5B81FA
RGBrgb(91, 129, 250)
HSLhsl(226, 94%, 67%)
HSVhsv(226, 64%, 98%)
CMYKcmyk(63.6%, 48.4%, 0%, 2%)
CIE-LABlab(56.90, 23.96, -64.52)
CIE-LCHlch(56.90, 68.82, 290.38°)
OKLaboklab(63.72% -0.0072 -0.1848)
OKLCHoklch(63.72% 0.185 267.8)
XYZxyz(29.4141, 24.8241, 93.6654)
Luminance0.2483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B81FA #FAD45B
analogous
#5BD1FA #5B81FA #845BFA
triadic
#5B81FA #FA5B81 #81FA5B
tetradic
#5B81FA #FA5BD1 #FAD45B #5BFA84
square
#5B81FA #FA5BD1 #FAD45B #5BFA84
split-complementary
#5B81FA #FA845B #D1FA5B
monochromatic
#0638D4 #2053F8 #5B81FA #96AFFC #D2DCFE

Accessibility & contrast

On white

3.52
#5B81FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#5B81FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B81FA
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B81FA#FFFFFF#000000##000000
##5B81FA1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4090FE
Deuteranopia (green-blind)
#1982F8
Tritanopia (blue-blind)
#009DB2
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5b81fa;
/* rgb */ color: rgb(91, 129, 250);
/* oklch */ color: oklch(63.7% 0.185 267.8);
Tailwind
colors: {
  custom: {
    50: '#98a5fd',
    500: '#5b81fa',
    950: '#000000',
  },
}
SCSS
$custom: #5b81fa;
$custom-light: #98a5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b81fa",
  "rgb": {
    "r": 91,
    "g": 129,
    "b": 250
  },
  "hsl": {
    "h": 225.66,
    "s": 94.083,
    "l": 66.863
  },
  "oklch": {
    "l": 0.63716,
    "c": 0.18495,
    "h": 267.8
  },
  "luminance": 0.24827
}

Semantic roles & 50–950 ramp

primary
#5B81FA
secondary
#F2E6BF
accent
#AF00E6
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F18
muted
#7F7F86

Preview Lab

Preview with #5B81FA

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

Preview Lab → · Contrast checker → · Palette generator →

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