#5F87EF#5F87EF

#5F87EF is a light, vivid blue. Relative luminance 0.260; OKLCH L 64.4% C 0.162 H 266.2°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5F87EF
RGBrgb(95, 135, 239)
HSLhsl(223, 82%, 65%)
HSVhsv(223, 60%, 94%)
CMYKcmyk(60.3%, 43.5%, 0%, 6.3%)
CIE-LABlab(58.03, 17.36, -56.62)
CIE-LCHlch(58.03, 59.22, 287.04°)
OKLaboklab(64.42% -0.0109 -0.1614)
OKLCHoklch(64.42% 0.162 266.2)
XYZxyz(28.9579, 25.9904, 85.1352)
Luminance0.2599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87EF #EFC75F
analogous
#5FCFEF #5F87EF #7F5FEF
triadic
#5F87EF #EF5F87 #87EF5F
tetradic
#5F87EF #EF5FCF #EFC75F #5FEF7F
square
#5F87EF #EF5FCF #EFC75F #5FEF7F
split-complementary
#5F87EF #EF7F5F #CFEF5F
monochromatic
#1343C0 #275DE9 #5F87EF #97B1F5 #CEDAFA

Accessibility & contrast

On white

3.39
#5F87EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#5F87EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87EF
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87EF#FFFFFF#000000##000000
##5F87EF1.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5792F3
Deuteranopia (green-blind)
#4285ED
Tritanopia (blue-blind)
#009EAF
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #5f87ef;
/* rgb */ color: rgb(95, 135, 239);
/* oklch */ color: oklch(64.4% 0.162 266.2);
Tailwind
colors: {
  custom: {
    50: '#98a9f5',
    500: '#5f87ef',
    950: '#000000',
  },
}
SCSS
$custom: #5f87ef;
$custom-light: #98a9f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87ef",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 223.333,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.64421,
    "c": 0.1618,
    "h": 266.2
  },
  "luminance": 0.25993
}

Semantic roles & 50–950 ramp

primary
#5F87EF
secondary
#EDE0BD
accent
#A307DE
background
#F9FAFF
surface
#F2F4FE
border
#CCCED6
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5F87EF

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

Preview Lab → · Contrast checker → · Palette generator →

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