#4D54D7#4D54D7

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

Color values

HEX#4D54D7
RGBrgb(77, 84, 215)
HSLhsl(237, 63%, 57%)
HSVhsv(237, 64%, 84%)
CMYKcmyk(64.2%, 60.9%, 0%, 15.7%)
CIE-LABlab(42.50, 37.59, -68.22)
CIE-LCHlch(42.50, 77.89, 298.86°)
OKLaboklab(51.94% 0.0166 -0.1965)
OKLCHoklch(51.94% 0.197 274.8)
XYZxyz(18.4926, 12.8231, 65.7774)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D54D7 #D7D04D
analogous
#4D99D7 #4D54D7 #8B4DD7
triadic
#4D54D7 #D74D54 #54D74D
tetradic
#4D54D7 #D74D99 #D7D04D #4DD78B
square
#4D54D7 #D74D99 #D7D04D #4DD78B
split-complementary
#4D54D7 #D78B4D #99D74D
monochromatic
#1F258A #2A32BC #4D54D7 #7F84E2 #B1B4ED

Accessibility & contrast

On white

5.89
#4D54D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#4D54D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D54D7
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D54D7#FFFFFF#000000##FFFFFF
##4D54D71.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d54d7;
/* rgb */ color: rgb(77, 84, 215);
/* oklch */ color: oklch(51.9% 0.197 274.8);
Tailwind
colors: {
  custom: {
    50: '#8e84e4',
    500: '#4d54d7',
    950: '#000000',
  },
}
SCSS
$custom: #4d54d7;
$custom-light: #8e84e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d54d7",
  "rgb": {
    "r": 77,
    "g": 84,
    "b": 215
  },
  "hsl": {
    "h": 236.957,
    "s": 63.303,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51942,
    "c": 0.19722,
    "h": 274.8
  },
  "luminance": 0.12825
}

Semantic roles & 50–950 ramp

primary
#4D54D7
secondary
#DCD9A4
accent
#DE41E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #4D54D7

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

Preview Lab → · Contrast checker → · Palette generator →

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