#4787E6#4787E6

#4787E6 is a light, vivid blue. Relative luminance 0.244; OKLCH L 62.8% C 0.158 H 258.2°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#4787E6
RGBrgb(71, 135, 230)
HSLhsl(216, 76%, 59%)
HSVhsv(216, 69%, 90%)
CMYKcmyk(69.1%, 41.3%, 0%, 9.8%)
CIE-LABlab(56.46, 10.30, -54.17)
CIE-LCHlch(56.46, 55.15, 280.77°)
OKLaboklab(62.76% -0.0322 -0.1547)
OKLCHoklch(62.76% 0.158 258.2)
XYZxyz(25.5403, 24.3780, 78.2070)
Luminance0.2438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4787E6 #E6A647
analogous
#47D7E6 #4787E6 #5747E6
triadic
#4787E6 #E64787 #87E647
tetradic
#4787E6 #E647D7 #E6A647 #47E657
square
#4787E6 #E647D7 #E6A647 #47E657
split-complementary
#4787E6 #E65747 #D7E647
monochromatic
#154C9D #1D66D3 #4787E6 #7DAAED #B3CDF5

Accessibility & contrast

On white

3.57
#4787E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#4787E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4787E6
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4787E6#FFFFFF#000000##000000
##4787E61.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A8FEA
Deuteranopia (green-blind)
#4081E4
Tritanopia (blue-blind)
#009DAB
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #4787e6;
/* rgb */ color: rgb(71, 135, 230);
/* oklch */ color: oklch(62.8% 0.158 258.2);
Tailwind
colors: {
  custom: {
    50: '#8ba9ee',
    500: '#4787e6',
    950: '#000000',
  },
}
SCSS
$custom: #4787e6;
$custom-light: #8ba9ee;
$custom-dark: #000000;
JSON
{
  "hex": "#4787e6",
  "rgb": {
    "r": 71,
    "g": 135,
    "b": 230
  },
  "hsl": {
    "h": 215.849,
    "s": 76.077,
    "l": 59.02
  },
  "oklch": {
    "l": 0.62763,
    "c": 0.15798,
    "h": 258.2
  },
  "luminance": 0.24381
}

Semantic roles & 50–950 ramp

primary
#4787E6
secondary
#E4CAA5
accent
#A635F3
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #4787E6

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

Preview Lab → · Contrast checker → · Palette generator →

#4787E6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva