#4C54D7#4C54D7

#4C54D7 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.9% C 0.197 H 274.5°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#4C54D7
RGBrgb(76, 84, 215)
HSLhsl(237, 63%, 57%)
HSVhsv(237, 65%, 84%)
CMYKcmyk(64.7%, 60.9%, 0%, 15.7%)
CIE-LABlab(42.43, 37.44, -68.32)
CIE-LCHlch(42.43, 77.91, 298.73°)
OKLaboklab(51.88% 0.0155 -0.1969)
OKLCHoklch(51.88% 0.197 274.5)
XYZxyz(18.4125, 12.7818, 65.7736)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C54D7 #D7CF4C
analogous
#4C99D7 #4C54D7 #8A4CD7
triadic
#4C54D7 #D74C54 #54D74C
tetradic
#4C54D7 #D74C99 #D7CF4C #4CD78A
square
#4C54D7 #D74C99 #D7CF4C #4CD78A
split-complementary
#4C54D7 #D78A4C #99D74C
monochromatic
#1F258A #2A32BC #4C54D7 #7E84E2 #B0B4ED

Accessibility & contrast

On white

5.90
#4C54D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#4C54D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C54D7
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C54D7#FFFFFF#000000##FFFFFF
##4C54D71.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#005ED4
Tritanopia (blue-blind)
#00758D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4c54d7;
/* rgb */ color: rgb(76, 84, 215);
/* oklch */ color: oklch(51.9% 0.197 274.5);
Tailwind
colors: {
  custom: {
    50: '#8d84e4',
    500: '#4c54d7',
    950: '#000000',
  },
}
SCSS
$custom: #4c54d7;
$custom-light: #8d84e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c54d7",
  "rgb": {
    "r": 76,
    "g": 84,
    "b": 215
  },
  "hsl": {
    "h": 236.547,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51879,
    "c": 0.19747,
    "h": 274.5
  },
  "luminance": 0.12783
}

Semantic roles & 50–950 ramp

primary
#4C54D7
secondary
#DCD8A3
accent
#DD41E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #4C54D7

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

Preview Lab → · Contrast checker → · Palette generator →

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