#4D4EBA#4D4EBA

#4D4EBA is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.6% C 0.166 H 277.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#4D4EBA
RGBrgb(77, 78, 186)
HSLhsl(239, 44%, 52%)
HSVhsv(239, 59%, 73%)
CMYKcmyk(58.6%, 58.1%, 0%, 27.1%)
CIE-LABlab(38.85, 31.64, -57.35)
CIE-LCHlch(38.85, 65.50, 298.89°)
OKLaboklab(48.56% 0.0227 -0.1646)
OKLCHoklch(48.56% 0.166 277.8)
XYZxyz(14.6451, 10.5707, 47.7135)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D4EBA #BAB94D
analogous
#4D85BA #4D4EBA #834DBA
triadic
#4D4EBA #BA4D4E #4EBA4D
tetradic
#4D4EBA #BA4D85 #BAB94D #4DBA83
square
#4D4EBA #BA4D85 #BAB94D #4DBA83
split-complementary
#4D4EBA #BA834D #85BA4D
monochromatic
#272865 #383991 #4D4EBA #797ACB #A5A6DC

Accessibility & contrast

On white

6.74
#4D4EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#4D4EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D4EBA
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D4EBA#FFFFFF#000000##FFFFFF
##4D4EBA1.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#00687C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4d4eba;
/* rgb */ color: rgb(77, 78, 186);
/* oklch */ color: oklch(48.6% 0.166 277.8);
Tailwind
colors: {
  custom: {
    50: '#897fcf',
    500: '#4d4eba',
    950: '#000000',
  },
}
SCSS
$custom: #4d4eba;
$custom-light: #897fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d4eba",
  "rgb": {
    "r": 77,
    "g": 78,
    "b": 186
  },
  "hsl": {
    "h": 239.45,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48556,
    "c": 0.16617,
    "h": 277.8
  },
  "luminance": 0.10572
}

Semantic roles & 50–950 ramp

primary
#4D4EBA
secondary
#C9C999
accent
#D354D4
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4D4EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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