#4787D2#4787D2

#4787D2 is a mid, vivid cyan. Relative luminance 0.233; OKLCH L 61.6% C 0.132 H 253.8°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#4787D2
RGBrgb(71, 135, 210)
HSLhsl(212, 61%, 55%)
HSVhsv(212, 66%, 82%)
CMYKcmyk(66.2%, 35.7%, 0%, 17.6%)
CIE-LABlab(55.40, 3.33, -44.65)
CIE-LCHlch(55.40, 44.78, 274.27°)
OKLaboklab(61.59% -0.0367 -0.1268)
OKLCHoklch(61.59% 0.132 253.8)
XYZxyz(22.8911, 23.3184, 64.2548)
Luminance0.2332 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4787D2 #D29247
analogous
#47CDD2 #4787D2 #4C47D2
triadic
#4787D2 #D24787 #87D247
tetradic
#4787D2 #D247CD #D29247 #47D24C
square
#4787D2 #D247CD #D29247 #47D24C
split-complementary
#4787D2 #D24C47 #CDD247
monochromatic
#1F4B7F #2B69B1 #4787D2 #78A7DE #A9C7EA

Accessibility & contrast

On white

3.71
#4787D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#4787D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4787D2
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4787D2#FFFFFF#000000##000000
##4787D21.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#668CD5
Deuteranopia (green-blind)
#527FD0
Tritanopia (blue-blind)
#0098A2
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #4787d2;
/* rgb */ color: rgb(71, 135, 210);
/* oklch */ color: oklch(61.6% 0.132 253.8);
Tailwind
colors: {
  custom: {
    50: '#88a9e0',
    500: '#4787d2',
    950: '#000000',
  },
}
SCSS
$custom: #4787d2;
$custom-light: #88a9e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4787d2",
  "rgb": {
    "r": 71,
    "g": 135,
    "b": 210
  },
  "hsl": {
    "h": 212.374,
    "s": 60.699,
    "l": 55.098
  },
  "oklch": {
    "l": 0.61587,
    "c": 0.13199,
    "h": 253.8
  },
  "luminance": 0.23321
}

Semantic roles & 50–950 ramp

primary
#4787D2
secondary
#D8BD9D
accent
#9A44E4
background
#F8FAFD
surface
#F0F4FB
border
#CBCED4
text
#0D0F15
muted
#7D7F83

Preview Lab

Preview with #4787D2

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

Preview Lab → · Contrast checker → · Palette generator →

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