#5F87F0#5F87F0

#5F87F0 is a light, vivid blue. Relative luminance 0.261; OKLCH L 64.5% C 0.163 H 266.2°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#5F87F0
RGBrgb(95, 135, 240)
HSLhsl(223, 83%, 66%)
HSVhsv(223, 60%, 94%)
CMYKcmyk(60.4%, 43.8%, 0%, 5.9%)
CIE-LABlab(58.08, 17.69, -57.08)
CIE-LCHlch(58.08, 59.76, 287.22°)
OKLaboklab(64.48% -0.0107 -0.1628)
OKLCHoklch(64.48% 0.163 266.2)
XYZxyz(29.1061, 26.0496, 85.9154)
Luminance0.2605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87F0 #F0C85F
analogous
#5FD0F0 #5F87F0 #7F5FF0
triadic
#5F87F0 #F05F87 #87F05F
tetradic
#5F87F0 #F05FD0 #F0C85F #5FF07F
square
#5F87F0 #F05FD0 #F0C85F #5FF07F
split-complementary
#5F87F0 #F07F5F #D0F05F
monochromatic
#1243C2 #275DEB #5F87F0 #97B1F5 #CFDBFA

Accessibility & contrast

On white

3.38
#5F87F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#5F87F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87F0
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87F0#FFFFFF#000000##000000
##5F87F01.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5693F4
Deuteranopia (green-blind)
#4085EE
Tritanopia (blue-blind)
#009FB0
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5f87f0;
/* rgb */ color: rgb(95, 135, 240);
/* oklch */ color: oklch(64.5% 0.163 266.2);
Tailwind
colors: {
  custom: {
    50: '#98a9f5',
    500: '#5f87f0',
    950: '#000000',
  },
}
SCSS
$custom: #5f87f0;
$custom-light: #98a9f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87f0",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 240
  },
  "hsl": {
    "h": 223.448,
    "s": 82.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.64483,
    "c": 0.16315,
    "h": 266.2
  },
  "luminance": 0.26052
}

Semantic roles & 50–950 ramp

primary
#5F87F0
secondary
#EEE0BD
accent
#A306DF
background
#FAFAFF
surface
#F3F4FE
border
#CDCED6
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #5F87F0

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

Preview Lab → · Contrast checker → · Palette generator →

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