#5F87DB#5F87DB

#5F87DB is a light, vivid blue. Relative luminance 0.249; OKLCH L 63.2% C 0.135 H 263.7°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5F87DB
RGBrgb(95, 135, 219)
HSLhsl(221, 63%, 62%)
HSVhsv(221, 57%, 86%)
CMYKcmyk(56.6%, 38.4%, 0%, 14.1%)
CIE-LABlab(56.95, 10.81, -47.19)
CIE-LCHlch(56.95, 48.41, 282.91°)
OKLaboklab(63.24% -0.0147 -0.1338)
OKLCHoklch(63.24% 0.135 263.7)
XYZxyz(26.1651, 24.8732, 70.4263)
Luminance0.2487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87DB #DBB35F
analogous
#5FC5DB #5F87DB #755FDB
triadic
#5F87DB #DB5F87 #87DB5F
tetradic
#5F87DB #DB5FC5 #DBB35F #5FDB75
square
#5F87DB #DB5FC5 #DBB35F #5FDB75
split-complementary
#5F87DB #DB755F #C5DB5F
monochromatic
#234A9C #2E62CE #5F87DB #91ACE6 #C3D2F1

Accessibility & contrast

On white

3.51
#5F87DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#5F87DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87DB
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87DB#FFFFFF#000000##000000
##5F87DB1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#648FDE
Deuteranopia (green-blind)
#5483D9
Tritanopia (blue-blind)
#009AA6
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5f87db;
/* rgb */ color: rgb(95, 135, 219);
/* oklch */ color: oklch(63.2% 0.135 263.7);
Tailwind
colors: {
  custom: {
    50: '#95a9e6',
    500: '#5f87db',
    950: '#000000',
  },
}
SCSS
$custom: #5f87db;
$custom-light: #95a9e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87db",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 219
  },
  "hsl": {
    "h": 220.645,
    "s": 63.265,
    "l": 61.569
  },
  "oklch": {
    "l": 0.63242,
    "c": 0.13459,
    "h": 263.7
  },
  "luminance": 0.24875
}

Semantic roles & 50–950 ramp

primary
#5F87DB
secondary
#E2D3B4
accent
#921ACB
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5F87DB

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

Preview Lab → · Contrast checker → · Palette generator →

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