#4D62B2#4D62B2

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

Color values

HEX#4D62B2
RGBrgb(77, 98, 178)
HSLhsl(228, 40%, 50%)
HSVhsv(228, 57%, 70%)
CMYKcmyk(56.7%, 44.9%, 0%, 30.2%)
CIE-LABlab(43.55, 16.28, -45.09)
CIE-LCHlch(43.55, 47.94, 289.85°)
OKLaboklab(51.93% 0.0008 -0.1284)
OKLCHoklch(51.93% 0.128 270.4)
XYZxyz(15.4615, 13.5263, 43.9069)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D62B2 #B29D4D
analogous
#4D94B2 #4D62B2 #6B4DB2
triadic
#4D62B2 #B24D62 #62B24D
tetradic
#4D62B2 #B24D94 #B29D4D #4DB26B
square
#4D62B2 #B24D94 #B29D4D #4DB26B
split-complementary
#4D62B2 #B26B4D #94B24D
monochromatic
#28335D #3B4A87 #4D62B2 #7888C4 #A2ADD7

Accessibility & contrast

On white

5.67
#4D62B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#4D62B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D62B2
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D62B2#FFFFFF#000000##FFFFFF
##4D62B21.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6CB5
Deuteranopia (green-blind)
#3163B0
Tritanopia (blue-blind)
#0E7481
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4d62b2;
/* rgb */ color: rgb(77, 98, 178);
/* oklch */ color: oklch(51.9% 0.128 270.4);
Tailwind
colors: {
  custom: {
    50: '#878ec9',
    500: '#4d62b2',
    950: '#000000',
  },
}
SCSS
$custom: #4d62b2;
$custom-light: #878ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d62b2",
  "rgb": {
    "r": 77,
    "g": 98,
    "b": 178
  },
  "hsl": {
    "h": 227.525,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.51926,
    "c": 0.12839,
    "h": 270.4
  },
  "luminance": 0.13527
}

Semantic roles & 50–950 ramp

primary
#4D62B2
secondary
#C4BB97
accent
#B758CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #4D62B2

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

Preview Lab → · Contrast checker → · Palette generator →

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