#4C5ECA#4C5ECA

#4C5ECA is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.7% C 0.168 H 272.2°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#4C5ECA
RGBrgb(76, 94, 202)
HSLhsl(231, 54%, 55%)
HSVhsv(231, 62%, 79%)
CMYKcmyk(62.4%, 53.5%, 0%, 20.8%)
CIE-LABlab(43.95, 26.79, -58.39)
CIE-LCHlch(43.95, 64.24, 294.65°)
OKLaboklab(52.71% 0.0066 -0.1675)
OKLCHoklch(52.71% 0.168 272.2)
XYZxyz(17.6403, 13.8047, 57.6006)
Luminance0.1381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C5ECA #CAB84C
analogous
#4C9DCA #4C5ECA #794CCA
triadic
#4C5ECA #CA4C5E #5ECA4C
tetradic
#4C5ECA #CA4C9D #CAB84C #4CCA79
square
#4C5ECA #CA4C9D #CAB84C #4CCA79
split-complementary
#4C5ECA #CA794C #9DCA4C
monochromatic
#243078 #3242A7 #4C5ECA #7B88D8 #AAB3E6

Accessibility & contrast

On white

5.58
#4C5ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#4C5ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C5ECA
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C5ECA#FFFFFF#000000##FFFFFF
##4C5ECA1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166ECE
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#00778B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4c5eca;
/* rgb */ color: rgb(76, 94, 202);
/* oklch */ color: oklch(52.7% 0.168 272.2);
Tailwind
colors: {
  custom: {
    50: '#8a8bdb',
    500: '#4c5eca',
    950: '#000000',
  },
}
SCSS
$custom: #4c5eca;
$custom-light: #8a8bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c5eca",
  "rgb": {
    "r": 76,
    "g": 94,
    "b": 202
  },
  "hsl": {
    "h": 231.429,
    "s": 54.31,
    "l": 54.51
  },
  "oklch": {
    "l": 0.52709,
    "c": 0.16768,
    "h": 272.2
  },
  "luminance": 0.13806
}

Semantic roles & 50–950 ramp

primary
#4C5ECA
secondary
#D4CC9E
accent
#C94ADE
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #4C5ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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