#5F87DE#5F87DE

#5F87DE is a light, vivid blue. Relative luminance 0.250; OKLCH L 63.4% C 0.139 H 264.2°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5F87DE
RGBrgb(95, 135, 222)
HSLhsl(221, 66%, 62%)
HSVhsv(221, 57%, 87%)
CMYKcmyk(57.2%, 39.2%, 0%, 12.9%)
CIE-LABlab(57.11, 11.79, -48.62)
CIE-LCHlch(57.11, 50.03, 283.63°)
OKLaboklab(63.41% -0.014 -0.138)
OKLCHoklch(63.41% 0.139 264.2)
XYZxyz(26.5636, 25.0326, 72.5250)
Luminance0.2504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87DE #DEB65F
analogous
#5FC7DE #5F87DE #765FDE
triadic
#5F87DE #DE5F87 #87DE5F
tetradic
#5F87DE #DE5FC7 #DEB65F #5FDE76
square
#5F87DE #DE5FC7 #DEB65F #5FDE76
split-complementary
#5F87DE #DE765F #C7DE5F
monochromatic
#214AA1 #2C61D4 #5F87DE #92ADE8 #C4D3F3

Accessibility & contrast

On white

3.50
#5F87DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#5F87DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87DE
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87DE#FFFFFF#000000##000000
##5F87DE1.003.506.016.01
#FFFFFF3.501.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#628FE1
Deuteranopia (green-blind)
#5284DC
Tritanopia (blue-blind)
#009AA8
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5f87de;
/* rgb */ color: rgb(95, 135, 222);
/* oklch */ color: oklch(63.4% 0.139 264.2);
Tailwind
colors: {
  custom: {
    50: '#96a9e9',
    500: '#5f87de',
    950: '#000000',
  },
}
SCSS
$custom: #5f87de;
$custom-light: #96a9e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87de",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 222
  },
  "hsl": {
    "h": 221.102,
    "s": 65.803,
    "l": 62.157
  },
  "oklch": {
    "l": 0.63413,
    "c": 0.13869,
    "h": 264.2
  },
  "luminance": 0.25035
}

Semantic roles & 50–950 ramp

primary
#5F87DE
secondary
#E4D5B5
accent
#9418CE
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5F87DE

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

Preview Lab → · Contrast checker → · Palette generator →

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