#5F87F5#5F87F5

#5F87F5 is a light, vivid blue. Relative luminance 0.264; OKLCH L 64.8% C 0.170 H 266.7°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5F87F5
RGBrgb(95, 135, 245)
HSLhsl(224, 88%, 67%)
HSVhsv(224, 61%, 96%)
CMYKcmyk(61.2%, 44.9%, 0%, 3.9%)
CIE-LABlab(58.37, 19.34, -59.39)
CIE-LCHlch(58.37, 62.46, 288.04°)
OKLaboklab(64.79% -0.0099 -0.1696)
OKLCHoklch(64.79% 0.17 266.7)
XYZxyz(29.8591, 26.3508, 89.8812)
Luminance0.2635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87F5 #F5CD5F
analogous
#5FD2F5 #5F87F5 #825FF5
triadic
#5F87F5 #F55F87 #87F55F
tetradic
#5F87F5 #F55FD2 #F5CD5F #5FF582
square
#5F87F5 #F55FD2 #F5CD5F #5FF582
split-complementary
#5F87F5 #F5825F #D2F55F
monochromatic
#0D40CD #255CF1 #5F87F5 #99B2F9 #D2DDFC

Accessibility & contrast

On white

3.35
#5F87F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#5F87F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87F5
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87F5#FFFFFF#000000##000000
##5F87F51.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5294F9
Deuteranopia (green-blind)
#3A86F3
Tritanopia (blue-blind)
#00A0B2
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5f87f5;
/* rgb */ color: rgb(95, 135, 245);
/* oklch */ color: oklch(64.8% 0.170 266.7);
Tailwind
colors: {
  custom: {
    50: '#99a9f9',
    500: '#5f87f5',
    950: '#000000',
  },
}
SCSS
$custom: #5f87f5;
$custom-light: #99a9f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87f5",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 224,
    "s": 88.235,
    "l": 66.667
  },
  "oklch": {
    "l": 0.64792,
    "c": 0.16988,
    "h": 266.7
  },
  "luminance": 0.26353
}

Semantic roles & 50–950 ramp

primary
#5F87F5
secondary
#F0E3C0
accent
#A801E5
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #5F87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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