#4F78B2#4F78B2

#4F78B2 is a mid, moderate blue. Relative luminance 0.183; OKLCH L 56.8% C 0.101 H 257.2°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#4F78B2
RGBrgb(79, 120, 178)
HSLhsl(215, 39%, 50%)
HSVhsv(215, 56%, 70%)
CMYKcmyk(55.6%, 32.6%, 0%, 30.2%)
CIE-LABlab(49.87, 3.08, -35.08)
CIE-LCHlch(49.87, 35.21, 275.02°)
OKLaboklab(56.84% -0.0225 -0.0989)
OKLCHoklch(56.84% 0.101 257.2)
XYZxyz(17.9740, 18.3081, 44.6975)
Luminance0.1831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F78B2 #B2894F
analogous
#4FA9B2 #4F78B2 #584FB2
triadic
#4F78B2 #B24F78 #78B24F
tetradic
#4F78B2 #B24FA9 #B2894F #4FB258
square
#4F78B2 #B24FA9 #B2894F #4FB258
split-complementary
#4F78B2 #B2584F #A9B24F
monochromatic
#293F5E #3C5B88 #4F78B2 #7A99C5 #A4B9D7

Accessibility & contrast

On white

4.50
#4F78B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#4F78B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F78B2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F78B2#FFFFFF#000000##000000
##4F78B21.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#617CB4
Deuteranopia (green-blind)
#5472B1
Tritanopia (blue-blind)
#0D858D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4f78b2;
/* rgb */ color: rgb(79, 120, 178);
/* oklch */ color: oklch(56.8% 0.101 257.2);
Tailwind
colors: {
  custom: {
    50: '#879ec9',
    500: '#4f78b2',
    950: '#000000',
  },
}
SCSS
$custom: #4f78b2;
$custom-light: #879ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f78b2",
  "rgb": {
    "r": 79,
    "g": 120,
    "b": 178
  },
  "hsl": {
    "h": 215.152,
    "s": 39.13,
    "l": 50.392
  },
  "oklch": {
    "l": 0.56844,
    "c": 0.10141,
    "h": 257.2
  },
  "luminance": 0.1831
}

Semantic roles & 50–950 ramp

primary
#4F78B2
secondary
#C4B298
accent
#9E59CF
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0E13
muted
#7D7E82

Preview Lab

Preview with #4F78B2

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

Preview Lab → · Contrast checker → · Palette generator →

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