#5F81EB#5F81EB

#5F81EB is a light, vivid blue. Relative luminance 0.241; OKLCH L 63.0% C 0.164 H 268.1°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#5F81EB
RGBrgb(95, 129, 235)
HSLhsl(225, 78%, 65%)
HSVhsv(225, 60%, 92%)
CMYKcmyk(59.6%, 45.1%, 0%, 7.8%)
CIE-LABlab(56.22, 19.66, -57.29)
CIE-LCHlch(56.22, 60.57, 288.94°)
OKLaboklab(62.96% -0.0054 -0.1635)
OKLCHoklch(62.96% 0.164 268.1)
XYZxyz(27.5599, 24.1293, 81.7862)
Luminance0.2413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F81EB #EBC95F
analogous
#5FC7EB #5F81EB #835FEB
triadic
#5F81EB #EB5F81 #81EB5F
tetradic
#5F81EB #EB5FC7 #EBC95F #5FEB83
square
#5F81EB #EB5FC7 #EBC95F #5FEB83
split-complementary
#5F81EB #EB835F #C7EB5F
monochromatic
#173EB9 #2956E4 #5F81EB #95ACF2 #CCD7F9

Accessibility & contrast

On white

3.60
#5F81EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#5F81EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F81EB
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F81EB#FFFFFF#000000##000000
##5F81EB1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8DEF
Deuteranopia (green-blind)
#3981E9
Tritanopia (blue-blind)
#0099AB
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5f81eb;
/* rgb */ color: rgb(95, 129, 235);
/* oklch */ color: oklch(63.0% 0.164 268.1);
Tailwind
colors: {
  custom: {
    50: '#98a5f2',
    500: '#5f81eb',
    950: '#000000',
  },
}
SCSS
$custom: #5f81eb;
$custom-light: #98a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f81eb",
  "rgb": {
    "r": 95,
    "g": 129,
    "b": 235
  },
  "hsl": {
    "h": 225.429,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.6296,
    "c": 0.16358,
    "h": 268.1
  },
  "luminance": 0.24132
}

Semantic roles & 50–950 ramp

primary
#5F81EB
secondary
#EBDFBB
accent
#A80BDA
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5F81EB

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

Preview Lab → · Contrast checker → · Palette generator →

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