#4F7EC7#4F7EC7

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

Color values

HEX#4F7EC7
RGBrgb(79, 126, 199)
HSLhsl(217, 52%, 55%)
HSVhsv(217, 60%, 78%)
CMYKcmyk(60.3%, 36.7%, 0%, 22%)
CIE-LABlab(52.63, 6.42, -42.79)
CIE-LCHlch(52.63, 43.27, 278.54°)
OKLaboklab(59.34% -0.0238 -0.1213)
OKLCHoklch(59.34% 0.124 258.9)
XYZxyz(20.9905, 20.7056, 56.9122)
Luminance0.2071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7EC7 #C7984F
analogous
#4FBAC7 #4F7EC7 #5C4FC7
triadic
#4F7EC7 #C74F7E #7EC74F
tetradic
#4F7EC7 #C74FBA #C7984F #4FC75C
square
#4F7EC7 #C74FBA #C7984F #4FC75C
split-complementary
#4F7EC7 #C75C4F #BAC74F
monochromatic
#264576 #3460A4 #4F7EC7 #7DA0D6 #ACC2E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F7EC7#FFFFFF#000000##000000
##4F7EC71.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)
#5F84CA
Deuteranopia (green-blind)
#4F78C5
Tritanopia (blue-blind)
#008E99
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4f7ec7;
/* rgb */ color: rgb(79, 126, 199);
/* oklch */ color: oklch(59.3% 0.124 258.9);
Tailwind
colors: {
  custom: {
    50: '#8aa3d8',
    500: '#4f7ec7',
    950: '#000000',
  },
}
SCSS
$custom: #4f7ec7;
$custom-light: #8aa3d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7ec7",
  "rgb": {
    "r": 79,
    "g": 126,
    "b": 199
  },
  "hsl": {
    "h": 216.5,
    "s": 51.724,
    "l": 54.51
  },
  "oklch": {
    "l": 0.59336,
    "c": 0.1236,
    "h": 258.9
  },
  "luminance": 0.20707
}

Semantic roles & 50–950 ramp

primary
#4F7EC7
secondary
#D2BEA0
accent
#A34DDB
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0D0F14
muted
#7D7E83

Preview Lab

Preview with #4F7EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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