#5F87EA#5F87EA

#5F87EA is a light, vivid blue. Relative luminance 0.257; OKLCH L 64.1% C 0.155 H 265.7°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#5F87EA
RGBrgb(95, 135, 234)
HSLhsl(223, 77%, 65%)
HSVhsv(223, 59%, 92%)
CMYKcmyk(59.4%, 42.3%, 0%, 8.2%)
CIE-LABlab(57.75, 15.71, -54.29)
CIE-LCHlch(57.75, 56.51, 286.14°)
OKLaboklab(64.12% -0.0117 -0.1546)
OKLCHoklch(64.12% 0.155 265.7)
XYZxyz(28.2295, 25.6990, 81.2987)
Luminance0.2570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87EA #EAC25F
analogous
#5FCDEA #5F87EA #7D5FEA
triadic
#5F87EA #EA5F87 #87EA5F
tetradic
#5F87EA #EA5FCD #EAC25F #5FEA7D
square
#5F87EA #EA5FCD #EAC25F #5FEA7D
split-complementary
#5F87EA #EA7D5F #CDEA5F
monochromatic
#1846B7 #295EE3 #5F87EA #95B0F1 #CBD8F8

Accessibility & contrast

On white

3.42
#5F87EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#5F87EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87EA
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87EA#FFFFFF#000000##000000
##5F87EA1.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B91EE
Deuteranopia (green-blind)
#4785E8
Tritanopia (blue-blind)
#009DAD
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #5f87ea;
/* rgb */ color: rgb(95, 135, 234);
/* oklch */ color: oklch(64.1% 0.155 265.7);
Tailwind
colors: {
  custom: {
    50: '#97a9f1',
    500: '#5f87ea',
    950: '#000000',
  },
}
SCSS
$custom: #5f87ea;
$custom-light: #97a9f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87ea",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 222.734,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.64118,
    "c": 0.15503,
    "h": 265.7
  },
  "luminance": 0.25701
}

Semantic roles & 50–950 ramp

primary
#5F87EA
secondary
#EADDBA
accent
#9E0CD9
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5F87EA

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

Preview Lab → · Contrast checker → · Palette generator →

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