#4C7ED7#4C7ED7

#4C7ED7 is a mid, vivid blue. Relative luminance 0.214; OKLCH L 60.1% C 0.146 H 261.0°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#4C7ED7
RGBrgb(76, 126, 215)
HSLhsl(218, 63%, 57%)
HSVhsv(218, 65%, 84%)
CMYKcmyk(64.7%, 41.4%, 0%, 15.7%)
CIE-LABlab(53.34, 11.33, -50.73)
CIE-LCHlch(53.34, 51.98, 282.60°)
OKLaboklab(60.13% -0.0228 -0.1446)
OKLCHoklch(60.13% 0.146 261)
XYZxyz(22.7027, 21.3623, 67.2037)
Luminance0.2137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7ED7 #D7A54C
analogous
#4CC4D7 #4C7ED7 #604CD7
triadic
#4C7ED7 #D74C7E #7ED74C
tetradic
#4C7ED7 #D74CC4 #D7A54C #4CD760
square
#4C7ED7 #D74CC4 #D7A54C #4CD760
split-complementary
#4C7ED7 #D7604C #C4D74C
monochromatic
#1F458A #2A5EBC #4C7ED7 #7EA2E2 #B0C6ED

Accessibility & contrast

On white

3.98
#4C7ED7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#4C7ED7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C7ED7
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7ED7#FFFFFF#000000##000000
##4C7ED71.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5586DA
Deuteranopia (green-blind)
#4079D5
Tritanopia (blue-blind)
#0092A0
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #4c7ed7;
/* rgb */ color: rgb(76, 126, 215);
/* oklch */ color: oklch(60.1% 0.146 261.0);
Tailwind
colors: {
  custom: {
    50: '#8ba2e4',
    500: '#4c7ed7',
    950: '#000000',
  },
}
SCSS
$custom: #4c7ed7;
$custom-light: #8ba2e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7ed7",
  "rgb": {
    "r": 76,
    "g": 126,
    "b": 215
  },
  "hsl": {
    "h": 218.417,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60133,
    "c": 0.14638,
    "h": 261
  },
  "luminance": 0.21365
}

Semantic roles & 50–950 ramp

primary
#4C7ED7
secondary
#DCC7A3
accent
#AB41E6
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0F15
muted
#7E7E84

Preview Lab

Preview with #4C7ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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