#4D54D5#4D54D5

#4D54D5 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.8% C 0.195 H 274.9°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#4D54D5
RGBrgb(77, 84, 213)
HSLhsl(237, 62%, 57%)
HSVhsv(237, 64%, 84%)
CMYKcmyk(63.8%, 60.6%, 0%, 16.5%)
CIE-LABlab(42.34, 36.92, -67.32)
CIE-LCHlch(42.34, 76.78, 298.74°)
OKLaboklab(51.78% 0.0167 -0.1939)
OKLCHoklch(51.78% 0.195 274.9)
XYZxyz(18.2372, 12.7210, 64.4322)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D54D5 #D5CE4D
analogous
#4D98D5 #4D54D5 #8A4DD5
triadic
#4D54D5 #D54D54 #54D54D
tetradic
#4D54D5 #D54D98 #D5CE4D #4DD58A
square
#4D54D5 #D54D98 #D5CE4D #4DD58A
split-complementary
#4D54D5 #D58A4D #98D54D
monochromatic
#202588 #2C33B9 #4D54D5 #7F84E1 #B0B3EC

Accessibility & contrast

On white

5.92
#4D54D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4D54D5
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D54D5#FFFFFF#000000##FFFFFF
##4D54D51.005.923.545.92
#FFFFFF5.921.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD9
Deuteranopia (green-blind)
#005ED2
Tritanopia (blue-blind)
#00748C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4d54d5;
/* rgb */ color: rgb(77, 84, 213);
/* oklch */ color: oklch(51.8% 0.195 274.9);
Tailwind
colors: {
  custom: {
    50: '#8d84e3',
    500: '#4d54d5',
    950: '#000000',
  },
}
SCSS
$custom: #4d54d5;
$custom-light: #8d84e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d54d5",
  "rgb": {
    "r": 77,
    "g": 84,
    "b": 213
  },
  "hsl": {
    "h": 236.912,
    "s": 61.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51778,
    "c": 0.19462,
    "h": 274.9
  },
  "luminance": 0.12723
}

Semantic roles & 50–950 ramp

primary
#4D54D5
secondary
#DBD8A3
accent
#DD43E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #4D54D5

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

Preview Lab → · Contrast checker → · Palette generator →

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