#4A7EC7#4A7EC7

#4A7EC7 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 59.1% C 0.126 H 257.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#4A7EC7
RGBrgb(74, 126, 199)
HSLhsl(215, 53%, 54%)
HSVhsv(215, 63%, 78%)
CMYKcmyk(62.8%, 36.7%, 0%, 22%)
CIE-LABlab(52.40, 5.48, -43.16)
CIE-LCHlch(52.40, 43.51, 277.23°)
OKLaboklab(59.1% -0.028 -0.1225)
OKLCHoklch(59.1% 0.126 257.1)
XYZxyz(20.5900, 20.4992, 56.8934)
Luminance0.2050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7EC7 #C7934A
analogous
#4ABCC7 #4A7EC7 #544AC7
triadic
#4A7EC7 #C74A7E #7EC74A
tetradic
#4A7EC7 #C74ABC #C7934A #4AC754
square
#4A7EC7 #C74ABC #C7934A #4AC754
split-complementary
#4A7EC7 #C7544A #BCC74A
monochromatic
#244573 #3261A2 #4A7EC7 #799FD5 #A7C1E4

Accessibility & contrast

On white

4.12
#4A7EC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#4A7EC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4A7EC7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7EC7#FFFFFF#000000##000000
##4A7EC71.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E83CA
Deuteranopia (green-blind)
#4D78C5
Tritanopia (blue-blind)
#008F99
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #4a7ec7;
/* rgb */ color: rgb(74, 126, 199);
/* oklch */ color: oklch(59.1% 0.126 257.1);
Tailwind
colors: {
  custom: {
    50: '#88a3d8',
    500: '#4a7ec7',
    950: '#000000',
  },
}
SCSS
$custom: #4a7ec7;
$custom-light: #88a3d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7ec7",
  "rgb": {
    "r": 74,
    "g": 126,
    "b": 199
  },
  "hsl": {
    "h": 215.04,
    "s": 52.743,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59095,
    "c": 0.12563,
    "h": 257.1
  },
  "luminance": 0.20501
}

Semantic roles & 50–950 ramp

primary
#4A7EC7
secondary
#D1BB9C
accent
#A04CDC
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0F14
muted
#7D7E83

Preview Lab

Preview with #4A7EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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