#5F87F4#5F87F4

#5F87F4 is a light, vivid blue. Relative luminance 0.263; OKLCH L 64.7% C 0.169 H 266.6°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#5F87F4
RGBrgb(95, 135, 244)
HSLhsl(224, 87%, 66%)
HSVhsv(224, 61%, 96%)
CMYKcmyk(61.1%, 44.7%, 0%, 4.3%)
CIE-LABlab(58.31, 19.01, -58.93)
CIE-LCHlch(58.31, 61.92, 287.88°)
OKLaboklab(64.73% -0.0101 -0.1682)
OKLCHoklch(64.73% 0.169 266.6)
XYZxyz(29.7068, 26.2899, 89.0794)
Luminance0.2629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87F4 #F4CC5F
analogous
#5FD1F4 #5F87F4 #825FF4
triadic
#5F87F4 #F45F87 #87F45F
tetradic
#5F87F4 #F45FD1 #F4CC5F #5FF482
square
#5F87F4 #F45FD1 #F4CC5F #5FF482
split-complementary
#5F87F4 #F4825F #D1F45F
monochromatic
#0E41CB #265CF0 #5F87F4 #98B2F8 #D2DDFC

Accessibility & contrast

On white

3.36
#5F87F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#5F87F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87F4
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87F4#FFFFFF#000000##000000
##5F87F41.003.366.266.26
#FFFFFF3.361.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5393F8
Deuteranopia (green-blind)
#3B86F2
Tritanopia (blue-blind)
#00A0B2
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5f87f4;
/* rgb */ color: rgb(95, 135, 244);
/* oklch */ color: oklch(64.7% 0.169 266.6);
Tailwind
colors: {
  custom: {
    50: '#99a9f8',
    500: '#5f87f4',
    950: '#000000',
  },
}
SCSS
$custom: #5f87f4;
$custom-light: #99a9f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87f4",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 223.893,
    "s": 87.135,
    "l": 66.471
  },
  "oklch": {
    "l": 0.6473,
    "c": 0.16853,
    "h": 266.6
  },
  "luminance": 0.26292
}

Semantic roles & 50–950 ramp

primary
#5F87F4
secondary
#F0E3BF
accent
#A702E4
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #5F87F4

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

Preview Lab → · Contrast checker → · Palette generator →

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