#4C51BB#4C51BB

#4C51BB is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.1% C 0.164 H 276.5°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#4C51BB
RGBrgb(76, 81, 187)
HSLhsl(237, 45%, 52%)
HSVhsv(237, 59%, 73%)
CMYKcmyk(59.4%, 56.7%, 0%, 26.7%)
CIE-LABlab(39.59, 29.91, -56.73)
CIE-LCHlch(39.59, 64.13, 297.80°)
OKLaboklab(49.11% 0.0185 -0.1628)
OKLCHoklch(49.11% 0.164 276.5)
XYZxyz(14.8897, 11.0081, 48.3442)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C51BB #BBB64C
analogous
#4C89BB #4C51BB #7F4CBB
triadic
#4C51BB #BB4C51 #51BB4C
tetradic
#4C51BB #BB4C89 #BBB64C #4CBB7F
square
#4C51BB #BB4C89 #BBB64C #4CBB7F
split-complementary
#4C51BB #BB7F4C #89BB4C
monochromatic
#272A66 #383C92 #4C51BB #787CCC #A5A7DD

Accessibility & contrast

On white

6.56
#4C51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#4C51BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C51BB
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C51BB#FFFFFF#000000##FFFFFF
##4C51BB1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4c51bb;
/* rgb */ color: rgb(76, 81, 187);
/* oklch */ color: oklch(49.1% 0.164 276.5);
Tailwind
colors: {
  custom: {
    50: '#8882d0',
    500: '#4c51bb',
    950: '#000000',
  },
}
SCSS
$custom: #4c51bb;
$custom-light: #8882d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c51bb",
  "rgb": {
    "r": 76,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 237.297,
    "s": 44.939,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49115,
    "c": 0.16384,
    "h": 276.5
  },
  "luminance": 0.11009
}

Semantic roles & 50–950 ramp

primary
#4C51BB
secondary
#CAC899
accent
#CF53D5
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4C51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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