#4C7BC7#4C7BC7

#4C7BC7 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 58.5% C 0.128 H 259.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#4C7BC7
RGBrgb(76, 123, 199)
HSLhsl(217, 52%, 54%)
HSVhsv(217, 62%, 78%)
CMYKcmyk(61.8%, 38.2%, 0%, 22%)
CIE-LABlab(51.64, 7.67, -44.36)
CIE-LCHlch(51.64, 45.02, 279.81°)
OKLaboklab(58.53% -0.0232 -0.126)
OKLCHoklch(58.53% 0.128 259.6)
XYZxyz(20.3686, 19.8241, 56.7748)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7BC7 #C7984C
analogous
#4CB9C7 #4C7BC7 #5B4CC7
triadic
#4C7BC7 #C74C7B #7BC74C
tetradic
#4C7BC7 #C74CB9 #C7984C #4CC75B
square
#4C7BC7 #C74CB9 #C7984C #4CC75B
split-complementary
#4C7BC7 #C75B4C #B9C74C
monochromatic
#244374 #335EA3 #4C7BC7 #7B9DD6 #A9C0E4

Accessibility & contrast

On white

4.23
#4C7BC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#4C7BC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C7BC7
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7BC7#FFFFFF#000000##000000
##4C7BC71.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A81CA
Deuteranopia (green-blind)
#4976C5
Tritanopia (blue-blind)
#008C97
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4c7bc7;
/* rgb */ color: rgb(76, 123, 199);
/* oklch */ color: oklch(58.5% 0.128 259.6);
Tailwind
colors: {
  custom: {
    50: '#89a0d8',
    500: '#4c7bc7',
    950: '#000000',
  },
}
SCSS
$custom: #4c7bc7;
$custom-light: #89a0d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7bc7",
  "rgb": {
    "r": 76,
    "g": 123,
    "b": 199
  },
  "hsl": {
    "h": 217.073,
    "s": 52.34,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58529,
    "c": 0.12808,
    "h": 259.6
  },
  "luminance": 0.19826
}

Semantic roles & 50–950 ramp

primary
#4C7BC7
secondary
#D2BE9D
accent
#A54CDC
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4C7BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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