#4C7FD7#4C7FD7

#4C7FD7 is a mid, vivid blue. Relative luminance 0.216; OKLCH L 60.3% C 0.145 H 260.6°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#4C7FD7
RGBrgb(76, 127, 215)
HSLhsl(218, 63%, 57%)
HSVhsv(218, 65%, 84%)
CMYKcmyk(64.7%, 40.9%, 0%, 15.7%)
CIE-LABlab(53.62, 10.72, -50.28)
CIE-LCHlch(53.62, 51.42, 282.04°)
OKLaboklab(60.35% -0.0238 -0.1433)
OKLCHoklch(60.35% 0.145 260.6)
XYZxyz(22.8313, 21.6194, 67.2466)
Luminance0.2162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7FD7 #D7A44C
analogous
#4CC4D7 #4C7FD7 #5F4CD7
triadic
#4C7FD7 #D74C7F #7FD74C
tetradic
#4C7FD7 #D74CC4 #D7A44C #4CD75F
square
#4C7FD7 #D74CC4 #D7A44C #4CD75F
split-complementary
#4C7FD7 #D75F4C #C4D74C
monochromatic
#1F468A #2A5FBC #4C7FD7 #7EA3E2 #B0C7ED

Accessibility & contrast

On white

3.94
#4C7FD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#4C7FD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C7FD7
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7FD7#FFFFFF#000000##000000
##4C7FD71.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5787DA
Deuteranopia (green-blind)
#427AD5
Tritanopia (blue-blind)
#0093A0
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #4c7fd7;
/* rgb */ color: rgb(76, 127, 215);
/* oklch */ color: oklch(60.3% 0.145 260.6);
Tailwind
colors: {
  custom: {
    50: '#8ba3e4',
    500: '#4c7fd7',
    950: '#000000',
  },
}
SCSS
$custom: #4c7fd7;
$custom-light: #8ba3e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7fd7",
  "rgb": {
    "r": 76,
    "g": 127,
    "b": 215
  },
  "hsl": {
    "h": 217.986,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60348,
    "c": 0.14525,
    "h": 260.6
  },
  "luminance": 0.21622
}

Semantic roles & 50–950 ramp

primary
#4C7FD7
secondary
#DCC7A3
accent
#AA41E6
background
#F9FAFE
surface
#F1F3FC
border
#CBCDD5
text
#0D0F15
muted
#7E7F84

Preview Lab

Preview with #4C7FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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