#4C71B2#4C71B2

#4C71B2 is a mid, moderate blue. Relative luminance 0.166; OKLCH L 55.1% C 0.110 H 261.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#4C71B2
RGBrgb(76, 113, 178)
HSLhsl(218, 40%, 50%)
HSVhsv(218, 57%, 70%)
CMYKcmyk(57.3%, 36.5%, 0%, 30.2%)
CIE-LABlab(47.70, 6.69, -38.50)
CIE-LCHlch(47.70, 39.08, 279.86°)
OKLaboklab(55.11% -0.0172 -0.1089)
OKLCHoklch(55.11% 0.11 261)
XYZxyz(16.9187, 16.5597, 44.4156)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C71B2 #B28D4C
analogous
#4CA4B2 #4C71B2 #5A4CB2
triadic
#4C71B2 #B24C71 #71B24C
tetradic
#4C71B2 #B24CA4 #B28D4C #4CB25A
square
#4C71B2 #B24CA4 #B28D4C #4CB25A
split-complementary
#4C71B2 #B25A4C #A4B24C
monochromatic
#273B5C #3A5687 #4C71B2 #7693C5 #A1B5D7

Accessibility & contrast

On white

4.87
#4C71B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#4C71B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C71B2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C71B2#FFFFFF#000000##FFFFFF
##4C71B21.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5676B5
Deuteranopia (green-blind)
#496DB1
Tritanopia (blue-blind)
#007F89
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4c71b2;
/* rgb */ color: rgb(76, 113, 178);
/* oklch */ color: oklch(55.1% 0.110 261.0);
Tailwind
colors: {
  custom: {
    50: '#8699c9',
    500: '#4c71b2',
    950: '#000000',
  },
}
SCSS
$custom: #4c71b2;
$custom-light: #8699c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c71b2",
  "rgb": {
    "r": 76,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 218.235,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55114,
    "c": 0.1103,
    "h": 261
  },
  "luminance": 0.16561
}

Semantic roles & 50–950 ramp

primary
#4C71B2
secondary
#C4B396
accent
#A458D0
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0D13
muted
#7D7E82

Preview Lab

Preview with #4C71B2

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

Preview Lab → · Contrast checker → · Palette generator →

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