#4C5FAC#4C5FAC

#4C5FAC is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.8% C 0.124 H 271.0°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#4C5FAC
RGBrgb(76, 95, 172)
HSLhsl(228, 39%, 49%)
HSVhsv(228, 56%, 67%)
CMYKcmyk(55.8%, 44.8%, 0%, 32.5%)
CIE-LABlab(42.31, 15.95, -43.55)
CIE-LCHlch(42.31, 46.38, 290.12°)
OKLaboklab(50.85% 0.0022 -0.1239)
OKLCHoklch(50.85% 0.124 271)
XYZxyz(14.5166, 12.6984, 40.7078)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C5FAC #AC994C
analogous
#4C8FAC #4C5FAC #694CAC
triadic
#4C5FAC #AC4C5F #5FAC4C
tetradic
#4C5FAC #AC4C8F #AC994C #4CAC69
square
#4C5FAC #AC4C8F #AC994C #4CAC69
split-complementary
#4C5FAC #AC694C #8FAC4C
monochromatic
#263057 #394882 #4C5FAC #7483C1 #9EA9D4

Accessibility & contrast

On white

5.93
#4C5FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#4C5FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C5FAC
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C5FAC#FFFFFF#000000##FFFFFF
##4C5FAC1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D68AF
Deuteranopia (green-blind)
#3160AA
Tritanopia (blue-blind)
#16707D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4c5fac;
/* rgb */ color: rgb(76, 95, 172);
/* oklch */ color: oklch(50.8% 0.124 271.0);
Tailwind
colors: {
  custom: {
    50: '#858cc5',
    500: '#4c5fac',
    950: '#000000',
  },
}
SCSS
$custom: #4c5fac;
$custom-light: #858cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c5fac",
  "rgb": {
    "r": 76,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 228.125,
    "s": 38.71,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50848,
    "c": 0.12394,
    "h": 271
  },
  "luminance": 0.12699
}

Semantic roles & 50–950 ramp

primary
#4C5FAC
secondary
#C1B893
accent
#B759CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #4C5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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