#5F87FB#5F87FB

#5F87FB is a light, vivid blue. Relative luminance 0.267; OKLCH L 65.2% C 0.178 H 267.1°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#5F87FB
RGBrgb(95, 135, 251)
HSLhsl(225, 95%, 68%)
HSVhsv(225, 62%, 98%)
CMYKcmyk(62.2%, 46.2%, 0%, 1.6%)
CIE-LABlab(58.72, 21.34, -62.14)
CIE-LCHlch(58.72, 65.70, 288.95°)
OKLaboklab(65.17% -0.009 -0.1777)
OKLCHoklch(65.17% 0.178 267.1)
XYZxyz(30.7899, 26.7231, 94.7836)
Luminance0.2673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87FB #FBD35F
analogous
#5FD5FB #5F87FB #855FFB
triadic
#5F87FB #FB5F87 #87FB5F
tetradic
#5F87FB #FB5FD5 #FBD35F #5FFB85
square
#5F87FB #FB5FD5 #FBD35F #5FFB85
split-complementary
#5F87FB #FB855F #D5FB5F
monochromatic
#053CDA #235AFA #5F87FB #9BB4FC #D6E1FE

Accessibility & contrast

On white

3.31
#5F87FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#5F87FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87FB
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87FB#FFFFFF#000000##000000
##5F87FB1.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D95FF
Deuteranopia (green-blind)
#3187F9
Tritanopia (blue-blind)
#00A2B5
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #5f87fb;
/* rgb */ color: rgb(95, 135, 251);
/* oklch */ color: oklch(65.2% 0.178 267.1);
Tailwind
colors: {
  custom: {
    50: '#9aa9fd',
    500: '#5f87fb',
    950: '#000000',
  },
}
SCSS
$custom: #5f87fb;
$custom-light: #9aa9fd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87fb",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 224.615,
    "s": 95.122,
    "l": 67.843
  },
  "oklch": {
    "l": 0.65171,
    "c": 0.1779,
    "h": 267.1
  },
  "luminance": 0.26726
}

Semantic roles & 50–950 ramp

primary
#5F87FB
secondary
#F3E7C3
accent
#AB00E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F0F18
muted
#7F7F86

Preview Lab

Preview with #5F87FB

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

Preview Lab → · Contrast checker → · Palette generator →

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