#4C7ECA#4C7ECA

#4C7ECA is a mid, vivid blue. Relative luminance 0.207; OKLCH L 59.4% C 0.129 H 258.5°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#4C7ECA
RGBrgb(76, 126, 202)
HSLhsl(216, 54%, 55%)
HSVhsv(216, 62%, 79%)
CMYKcmyk(62.4%, 37.6%, 0%, 20.8%)
CIE-LABlab(52.64, 6.87, -44.48)
CIE-LCHlch(52.64, 45.00, 278.78°)
OKLaboklab(59.36% -0.0256 -0.1263)
OKLCHoklch(59.36% 0.129 258.5)
XYZxyz(21.0982, 20.7205, 58.7533)
Luminance0.2072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7ECA #CA984C
analogous
#4CBDCA #4C7ECA #594CCA
triadic
#4C7ECA #CA4C7E #7ECA4C
tetradic
#4C7ECA #CA4CBD #CA984C #4CCA59
square
#4C7ECA #CA4CBD #CA984C #4CCA59
split-complementary
#4C7ECA #CA594C #BDCA4C
monochromatic
#244578 #3260A7 #4C7ECA #7BA0D8 #AAC2E6

Accessibility & contrast

On white

4.08
#4C7ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#4C7ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C7ECA
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7ECA#FFFFFF#000000##000000
##4C7ECA1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D84CD
Deuteranopia (green-blind)
#4C78C8
Tritanopia (blue-blind)
#008F9A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4c7eca;
/* rgb */ color: rgb(76, 126, 202);
/* oklch */ color: oklch(59.4% 0.129 258.5);
Tailwind
colors: {
  custom: {
    50: '#89a3da',
    500: '#4c7eca',
    950: '#000000',
  },
}
SCSS
$custom: #4c7eca;
$custom-light: #89a3da;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7eca",
  "rgb": {
    "r": 76,
    "g": 126,
    "b": 202
  },
  "hsl": {
    "h": 216.19,
    "s": 54.31,
    "l": 54.51
  },
  "oklch": {
    "l": 0.59361,
    "c": 0.12885,
    "h": 258.5
  },
  "luminance": 0.20722
}

Semantic roles & 50–950 ramp

primary
#4C7ECA
secondary
#D4BE9E
accent
#A34ADE
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0D0F15
muted
#7D7E83

Preview Lab

Preview with #4C7ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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