#4787EE#4787EE

#4787EE is a light, vivid blue. Relative luminance 0.248; OKLCH L 63.3% C 0.168 H 259.5°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#4787EE
RGBrgb(71, 135, 238)
HSLhsl(217, 83%, 61%)
HSVhsv(217, 70%, 93%)
CMYKcmyk(70.2%, 43.3%, 0%, 6.7%)
CIE-LABlab(56.92, 13.12, -57.90)
CIE-LCHlch(56.92, 59.37, 282.77°)
OKLaboklab(63.26% -0.0306 -0.1656)
OKLCHoklch(63.26% 0.168 259.5)
XYZxyz(26.6896, 24.8377, 84.2599)
Luminance0.2484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4787EE #EEAE47
analogous
#47DBEE #4787EE #5A47EE
triadic
#4787EE #EE4787 #87EE47
tetradic
#4787EE #EE47DB #EEAE47 #47EE5A
square
#4787EE #EE47DB #EEAE47 #47EE5A
split-complementary
#4787EE #EE5A47 #DBEE47
monochromatic
#104BAB #1564E3 #4787EE #7FACF3 #B7D0F8

Accessibility & contrast

On white

3.52
#4787EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#4787EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4787EE
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4787EE#FFFFFF#000000##000000
##4787EE1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5491F2
Deuteranopia (green-blind)
#3681EC
Tritanopia (blue-blind)
#009FAF
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #4787ee;
/* rgb */ color: rgb(71, 135, 238);
/* oklch */ color: oklch(63.3% 0.168 259.5);
Tailwind
colors: {
  custom: {
    50: '#8da9f4',
    500: '#4787ee',
    950: '#000000',
  },
}
SCSS
$custom: #4787ee;
$custom-light: #8da9f4;
$custom-dark: #000000;
JSON
{
  "hex": "#4787ee",
  "rgb": {
    "r": 71,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 217.006,
    "s": 83.085,
    "l": 60.588
  },
  "oklch": {
    "l": 0.6326,
    "c": 0.16842,
    "h": 259.5
  },
  "luminance": 0.24841
}

Semantic roles & 50–950 ramp

primary
#4787EE
secondary
#E8D0A9
accent
#8C06E0
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #4787EE

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

Preview Lab → · Contrast checker → · Palette generator →

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