#5F87DF#5F87DF

#5F87DF is a light, vivid blue. Relative luminance 0.251; OKLCH L 63.5% C 0.140 H 264.3°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#5F87DF
RGBrgb(95, 135, 223)
HSLhsl(221, 67%, 62%)
HSVhsv(221, 57%, 87%)
CMYKcmyk(57.4%, 39.5%, 0%, 12.5%)
CIE-LABlab(57.16, 12.11, -49.09)
CIE-LCHlch(57.16, 50.57, 283.86°)
OKLaboklab(63.47% -0.0138 -0.1394)
OKLCHoklch(63.47% 0.14 264.3)
XYZxyz(26.6980, 25.0864, 73.2330)
Luminance0.2509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87DF #DFB75F
analogous
#5FC7DF #5F87DF #775FDF
triadic
#5F87DF #DF5F87 #87DF5F
tetradic
#5F87DF #DF5FC7 #DFB75F #5FDF77
square
#5F87DF #DF5FC7 #DFB75F #5FDF77
split-complementary
#5F87DF #DF775F #C7DF5F
monochromatic
#2149A3 #2C61D5 #5F87DF #92ADE9 #C5D4F3

Accessibility & contrast

On white

3.49
#5F87DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#5F87DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87DF
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87DF#FFFFFF#000000##000000
##5F87DF1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6290E2
Deuteranopia (green-blind)
#5184DD
Tritanopia (blue-blind)
#009BA8
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5f87df;
/* rgb */ color: rgb(95, 135, 223);
/* oklch */ color: oklch(63.5% 0.140 264.3);
Tailwind
colors: {
  custom: {
    50: '#96a9e9',
    500: '#5f87df',
    950: '#000000',
  },
}
SCSS
$custom: #5f87df;
$custom-light: #96a9e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87df",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 223
  },
  "hsl": {
    "h": 221.25,
    "s": 66.667,
    "l": 62.353
  },
  "oklch": {
    "l": 0.63471,
    "c": 0.14006,
    "h": 264.3
  },
  "luminance": 0.25089
}

Semantic roles & 50–950 ramp

primary
#5F87DF
secondary
#E4D6B6
accent
#9517CF
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5F87DF

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

Preview Lab → · Contrast checker → · Palette generator →

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