#4C52BA#4C52BA

#4C52BA is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.2% C 0.161 H 276.2°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#4C52BA
RGBrgb(76, 82, 186)
HSLhsl(237, 44%, 51%)
HSVhsv(237, 59%, 73%)
CMYKcmyk(59.1%, 55.9%, 0%, 27.1%)
CIE-LABlab(39.77, 28.94, -55.85)
CIE-LCHlch(39.77, 62.90, 297.39°)
OKLaboklab(49.23% 0.0175 -0.1602)
OKLCHoklch(49.23% 0.161 276.2)
XYZxyz(14.8578, 11.1152, 47.8073)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C52BA #BAB44C
analogous
#4C89BA #4C52BA #7D4CBA
triadic
#4C52BA #BA4C52 #52BA4C
tetradic
#4C52BA #BA4C89 #BAB44C #4CBA7D
square
#4C52BA #BA4C89 #BAB44C #4CBA7D
split-complementary
#4C52BA #BA7D4C #89BA4C
monochromatic
#272A65 #383D91 #4C52BA #787DCB #A4A7DC

Accessibility & contrast

On white

6.52
#4C52BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#4C52BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C52BA
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C52BA#FFFFFF#000000##FFFFFF
##4C52BA1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4c52ba;
/* rgb */ color: rgb(76, 82, 186);
/* oklch */ color: oklch(49.2% 0.161 276.2);
Tailwind
colors: {
  custom: {
    50: '#8882cf',
    500: '#4c52ba',
    950: '#000000',
  },
}
SCSS
$custom: #4c52ba;
$custom-light: #8882cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c52ba",
  "rgb": {
    "r": 76,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 236.727,
    "s": 44.355,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49226,
    "c": 0.16117,
    "h": 276.2
  },
  "luminance": 0.11116
}

Semantic roles & 50–950 ramp

primary
#4C52BA
secondary
#C9C799
accent
#CD54D4
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4C52BA

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

Preview Lab → · Contrast checker → · Palette generator →

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