#4A7ECF#4A7ECF

#4A7ECF is a mid, vivid blue. Relative luminance 0.209; OKLCH L 59.6% C 0.136 H 259.0°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#4A7ECF
RGBrgb(74, 126, 207)
HSLhsl(217, 58%, 55%)
HSVhsv(217, 64%, 81%)
CMYKcmyk(64.3%, 39.1%, 0%, 18.8%)
CIE-LABlab(52.82, 8.23, -47.04)
CIE-LCHlch(52.82, 47.76, 279.92°)
OKLaboklab(59.56% -0.0261 -0.1338)
OKLCHoklch(59.56% 0.136 259)
XYZxyz(21.5434, 20.8805, 61.9144)
Luminance0.2088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7ECF #CF9B4A
analogous
#4AC1CF #4A7ECF #584ACF
triadic
#4A7ECF #CF4A7E #7ECF4A
tetradic
#4A7ECF #CF4AC1 #CF9B4A #4ACF58
square
#4A7ECF #CF4AC1 #CF9B4A #4ACF58
split-complementary
#4A7ECF #CF584A #C1CF4A
monochromatic
#21457D #2E60AE #4A7ECF #7AA0DC #ABC3E9

Accessibility & contrast

On white

4.06
#4A7ECF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#4A7ECF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4A7ECF
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7ECF#FFFFFF#000000##000000
##4A7ECF1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A85D2
Deuteranopia (green-blind)
#4778CD
Tritanopia (blue-blind)
#00909C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4a7ecf;
/* rgb */ color: rgb(74, 126, 207);
/* oklch */ color: oklch(59.6% 0.136 259.0);
Tailwind
colors: {
  custom: {
    50: '#89a2de',
    500: '#4a7ecf',
    950: '#000000',
  },
}
SCSS
$custom: #4a7ecf;
$custom-light: #89a2de;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7ecf",
  "rgb": {
    "r": 74,
    "g": 126,
    "b": 207
  },
  "hsl": {
    "h": 216.541,
    "s": 58.079,
    "l": 55.098
  },
  "oklch": {
    "l": 0.5956,
    "c": 0.13634,
    "h": 259
  },
  "luminance": 0.20883
}

Semantic roles & 50–950 ramp

primary
#4A7ECF
secondary
#D6C09F
accent
#A546E1
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0D0F15
muted
#7D7E83

Preview Lab

Preview with #4A7ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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