#4C54BA#4C54BA

#4C54BA is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.6% C 0.159 H 275.6°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#4C54BA
RGBrgb(76, 84, 186)
HSLhsl(236, 44%, 51%)
HSVhsv(236, 59%, 73%)
CMYKcmyk(59.1%, 54.8%, 0%, 27.1%)
CIE-LABlab(40.28, 27.68, -55.03)
CIE-LCHlch(40.28, 61.60, 296.70°)
OKLaboklab(49.61% 0.0155 -0.1578)
OKLCHoklch(49.61% 0.159 275.6)
XYZxyz(15.0109, 11.4212, 47.8583)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C54BA #BAB24C
analogous
#4C8BBA #4C54BA #7B4CBA
triadic
#4C54BA #BA4C54 #54BA4C
tetradic
#4C54BA #BA4C8B #BAB24C #4CBA7B
square
#4C54BA #BA4C8B #BAB24C #4CBA7B
split-complementary
#4C54BA #BA7B4C #8BBA4C
monochromatic
#272B65 #383E91 #4C54BA #787ECB #A4A8DC

Accessibility & contrast

On white

6.39
#4C54BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#4C54BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C54BA
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C54BA#FFFFFF#000000##FFFFFF
##4C54BA1.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C64BE
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4c54ba;
/* rgb */ color: rgb(76, 84, 186);
/* oklch */ color: oklch(49.6% 0.159 275.6);
Tailwind
colors: {
  custom: {
    50: '#8884cf',
    500: '#4c54ba',
    950: '#000000',
  },
}
SCSS
$custom: #4c54ba;
$custom-light: #8884cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c54ba",
  "rgb": {
    "r": 76,
    "g": 84,
    "b": 186
  },
  "hsl": {
    "h": 235.636,
    "s": 44.355,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49605,
    "c": 0.15853,
    "h": 275.6
  },
  "luminance": 0.11422
}

Semantic roles & 50–950 ramp

primary
#4C54BA
secondary
#C9C699
accent
#CB54D4
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4C54BA

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

Preview Lab → · Contrast checker → · Palette generator →

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