#4C5FB8#4C5FB8

#4C5FB8 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 51.6% C 0.141 H 271.6°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#4C5FB8
RGBrgb(76, 95, 184)
HSLhsl(229, 43%, 51%)
HSVhsv(229, 59%, 72%)
CMYKcmyk(58.7%, 48.4%, 0%, 27.8%)
CIE-LABlab(43.03, 20.01, -49.43)
CIE-LCHlch(43.03, 53.32, 292.04°)
OKLaboklab(51.64% 0.0039 -0.1412)
OKLCHoklch(51.64% 0.141 271.6)
XYZxyz(15.7216, 13.1804, 47.0537)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C5FB8 #B8A54C
analogous
#4C95B8 #4C5FB8 #6F4CB8
triadic
#4C5FB8 #B84C5F #5FB84C
tetradic
#4C5FB8 #B84C95 #B8A54C #4CB86F
square
#4C5FB8 #B84C95 #B8A54C #4CB86F
split-complementary
#4C5FB8 #B86F4C #95B84C
monochromatic
#273263 #38488E #4C5FB8 #7886C9 #A4ADDB

Accessibility & contrast

On white

5.77
#4C5FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#4C5FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C5FB8
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C5FB8#FFFFFF#000000##FFFFFF
##4C5FB81.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336BBB
Deuteranopia (green-blind)
#2261B6
Tritanopia (blue-blind)
#007383
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4c5fb8;
/* rgb */ color: rgb(76, 95, 184);
/* oklch */ color: oklch(51.6% 0.141 271.6);
Tailwind
colors: {
  custom: {
    50: '#878cce',
    500: '#4c5fb8',
    950: '#000000',
  },
}
SCSS
$custom: #4c5fb8;
$custom-light: #878cce;
$custom-dark: #000000;
JSON
{
  "hex": "#4c5fb8",
  "rgb": {
    "r": 76,
    "g": 95,
    "b": 184
  },
  "hsl": {
    "h": 229.444,
    "s": 43.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51638,
    "c": 0.14122,
    "h": 271.6
  },
  "luminance": 0.13182
}

Semantic roles & 50–950 ramp

primary
#4C5FB8
secondary
#C8BF98
accent
#BD55D3
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C14
muted
#7D7D82

Preview Lab

Preview with #4C5FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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