#4C87EF#4C87EF

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

Color values

HEX#4C87EF
RGBrgb(76, 135, 239)
HSLhsl(218, 84%, 62%)
HSVhsv(218, 68%, 94%)
CMYKcmyk(68.2%, 43.5%, 0%, 6.3%)
CIE-LABlab(57.17, 14.20, -58.04)
CIE-LCHlch(57.17, 59.76, 283.74°)
OKLaboklab(63.52% -0.0268 -0.166)
OKLCHoklch(63.52% 0.168 260.8)
XYZxyz(27.2189, 25.0937, 85.0537)
Luminance0.2510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C87EF #EFB44C
analogous
#4CD9EF #4C87EF #634CEF
triadic
#4C87EF #EF4C87 #87EF4C
tetradic
#4C87EF #EF4CD9 #EFB44C #4CEF63
square
#4C87EF #EF4CD9 #EFB44C #4CEF63
split-complementary
#4C87EF #EF634C #D9EF4C
monochromatic
#104AB1 #1562E9 #4C87EF #84ADF4 #BCD2F9

Accessibility & contrast

On white

3.49
#4C87EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#4C87EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C87EF
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C87EF#FFFFFF#000000##000000
##4C87EF1.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)
#5491F3
Deuteranopia (green-blind)
#3782ED
Tritanopia (blue-blind)
#009FAF
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #4c87ef;
/* rgb */ color: rgb(76, 135, 239);
/* oklch */ color: oklch(63.5% 0.168 260.8);
Tailwind
colors: {
  custom: {
    50: '#8fa9f5',
    500: '#4c87ef',
    950: '#000000',
  },
}
SCSS
$custom: #4c87ef;
$custom-light: #8fa9f5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c87ef",
  "rgb": {
    "r": 76,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 218.282,
    "s": 83.59,
    "l": 61.765
  },
  "oklch": {
    "l": 0.63524,
    "c": 0.16811,
    "h": 260.8
  },
  "luminance": 0.25096
}

Semantic roles & 50–950 ramp

primary
#4C87EF
secondary
#EAD4AD
accent
#9105E0
background
#F9FAFF
surface
#F2F4FE
border
#CCCED6
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #4C87EF

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

Preview Lab → · Contrast checker → · Palette generator →

#4C87EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva