#4A7ECC#4A7ECC

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

Color values

HEX#4A7ECC
RGBrgb(74, 126, 204)
HSLhsl(216, 56%, 55%)
HSVhsv(216, 64%, 80%)
CMYKcmyk(63.7%, 38.2%, 0%, 20%)
CIE-LABlab(52.66, 7.19, -45.59)
CIE-LCHlch(52.66, 46.16, 278.96°)
OKLaboklab(59.38% -0.0268 -0.1296)
OKLCHoklch(59.38% 0.132 258.3)
XYZxyz(21.1801, 20.7352, 60.0011)
Luminance0.2074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7ECC #CC984A
analogous
#4ABFCC #4A7ECC #574ACC
triadic
#4A7ECC #CC4A7E #7ECC4A
tetradic
#4A7ECC #CC4ABF #CC984A #4ACC57
square
#4A7ECC #CC4ABF #CC984A #4ACC57
split-complementary
#4A7ECC #CC574A #BFCC4A
monochromatic
#224579 #3060A9 #4A7ECC #7AA0D9 #A9C2E7

Accessibility & contrast

On white

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

On black

5.15
#4A7ECC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4A7ECC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7ECC#FFFFFF#000000##000000
##4A7ECC1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C84CF
Deuteranopia (green-blind)
#4978CA
Tritanopia (blue-blind)
#00909B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4a7ecc;
/* rgb */ color: rgb(74, 126, 204);
/* oklch */ color: oklch(59.4% 0.132 258.3);
Tailwind
colors: {
  custom: {
    50: '#89a3dc',
    500: '#4a7ecc',
    950: '#000000',
  },
}
SCSS
$custom: #4a7ecc;
$custom-light: #89a3dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7ecc",
  "rgb": {
    "r": 74,
    "g": 126,
    "b": 204
  },
  "hsl": {
    "h": 216,
    "s": 56.034,
    "l": 54.51
  },
  "oklch": {
    "l": 0.59384,
    "c": 0.13232,
    "h": 258.3
  },
  "luminance": 0.20737
}

Semantic roles & 50–950 ramp

primary
#4A7ECC
secondary
#D4BE9D
accent
#A348DF
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0F15
muted
#7D7E83

Preview Lab

Preview with #4A7ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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