#4C5797#4C5797

#4C5797 is a mid, moderate blue. Relative luminance 0.106; OKLCH L 47.8% C 0.104 H 274.5°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#4C5797
RGBrgb(76, 87, 151)
HSLhsl(231, 33%, 45%)
HSVhsv(231, 50%, 59%)
CMYKcmyk(49.7%, 42.4%, 0%, 40.8%)
CIE-LABlab(38.88, 14.11, -36.51)
CIE-LCHlch(38.88, 39.14, 291.13°)
OKLaboklab(47.83% 0.0081 -0.1034)
OKLCHoklch(47.83% 0.104 274.5)
XYZxyz(11.9728, 10.5866, 30.6847)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C5797 #978C4C
analogous
#4C7D97 #4C5797 #674C97
triadic
#4C5797 #974C57 #57974C
tetradic
#4C5797 #974C7D #978C4C #4C9767
square
#4C5797 #974C7D #978C4C #4C9767
split-complementary
#4C5797 #97674C #7D974C
monochromatic
#232846 #38406E #4C5797 #6B76B5 #949CC9

Accessibility & contrast

On white

6.74
#4C5797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#4C5797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C5797
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C5797#FFFFFF#000000##FFFFFF
##4C57971.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5F99
Deuteranopia (green-blind)
#375996
Tritanopia (blue-blind)
#2F646F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4c5797;
/* rgb */ color: rgb(76, 87, 151);
/* oklch */ color: oklch(47.8% 0.104 274.5);
Tailwind
colors: {
  custom: {
    50: '#8386b6',
    500: '#4c5797',
    950: '#000000',
  },
}
SCSS
$custom: #4c5797;
$custom-light: #8386b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c5797",
  "rgb": {
    "r": 76,
    "g": 87,
    "b": 151
  },
  "hsl": {
    "h": 231.2,
    "s": 33.04,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47832,
    "c": 0.10367,
    "h": 274.5
  },
  "luminance": 0.10587
}

Semantic roles & 50–950 ramp

primary
#4C5797
secondary
#B6AF89
accent
#BA5FC9
background
#F8F8FB
surface
#EFEFF6
border
#CACAD0
text
#0B0B11
muted
#7C7C80

Preview Lab

Preview with #4C5797

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

Preview Lab → · Contrast checker → · Palette generator →

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