#4F7CC7#4F7CC7

#4F7CC7 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 58.9% C 0.126 H 260.1°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#4F7CC7
RGBrgb(79, 124, 199)
HSLhsl(218, 52%, 55%)
HSVhsv(218, 60%, 78%)
CMYKcmyk(60.3%, 37.7%, 0%, 22%)
CIE-LABlab(52.06, 7.64, -43.68)
CIE-LCHlch(52.06, 44.34, 279.92°)
OKLaboklab(58.9% -0.0216 -0.1239)
OKLCHoklch(58.9% 0.126 260.1)
XYZxyz(20.7373, 20.1993, 56.8278)
Luminance0.2020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7CC7 #C79A4F
analogous
#4FB8C7 #4F7CC7 #5E4FC7
triadic
#4F7CC7 #C74F7C #7CC74F
tetradic
#4F7CC7 #C74FB8 #C79A4F #4FC75E
square
#4F7CC7 #C74FB8 #C79A4F #4FC75E
split-complementary
#4F7CC7 #C75E4F #B8C74F
monochromatic
#264476 #345EA4 #4F7CC7 #7D9FD6 #ACC1E5

Accessibility & contrast

On white

4.17
#4F7CC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#4F7CC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F7CC7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7CC7#FFFFFF#000000##000000
##4F7CC71.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C82CA
Deuteranopia (green-blind)
#4C77C5
Tritanopia (blue-blind)
#008D98
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4f7cc7;
/* rgb */ color: rgb(79, 124, 199);
/* oklch */ color: oklch(58.9% 0.126 260.1);
Tailwind
colors: {
  custom: {
    50: '#8aa1d8',
    500: '#4f7cc7',
    950: '#000000',
  },
}
SCSS
$custom: #4f7cc7;
$custom-light: #8aa1d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7cc7",
  "rgb": {
    "r": 79,
    "g": 124,
    "b": 199
  },
  "hsl": {
    "h": 217.5,
    "s": 51.724,
    "l": 54.51
  },
  "oklch": {
    "l": 0.58897,
    "c": 0.1258,
    "h": 260.1
  },
  "luminance": 0.20201
}

Semantic roles & 50–950 ramp

primary
#4F7CC7
secondary
#D2BFA0
accent
#A64DDB
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0D0E14
muted
#7D7E83

Preview Lab

Preview with #4F7CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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