#4D5FB5#4D5FB5

#4D5FB5 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.5% C 0.137 H 271.9°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#4D5FB5
RGBrgb(77, 95, 181)
HSLhsl(230, 41%, 51%)
HSVhsv(230, 57%, 71%)
CMYKcmyk(57.5%, 47.5%, 0%, 29%)
CIE-LABlab(42.91, 19.20, -47.87)
CIE-LCHlch(42.91, 51.57, 291.85°)
OKLaboklab(51.5% 0.0046 -0.1366)
OKLCHoklch(51.5% 0.137 271.9)
XYZxyz(15.4905, 13.0972, 45.4188)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D5FB5 #B5A34D
analogous
#4D93B5 #4D5FB5 #6F4DB5
triadic
#4D5FB5 #B54D5F #5FB54D
tetradic
#4D5FB5 #B54D93 #B5A34D #4DB56F
square
#4D5FB5 #B54D93 #B5A34D #4DB56F
split-complementary
#4D5FB5 #B56F4D #93B54D
monochromatic
#283260 #3A488B #4D5FB5 #7886C7 #A3ADD9

Accessibility & contrast

On white

5.80
#4D5FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#4D5FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D5FB5
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D5FB5#FFFFFF#000000##FFFFFF
##4D5FB51.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366AB8
Deuteranopia (green-blind)
#2761B3
Tritanopia (blue-blind)
#067281
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4d5fb5;
/* rgb */ color: rgb(77, 95, 181);
/* oklch */ color: oklch(51.5% 0.137 271.9);
Tailwind
colors: {
  custom: {
    50: '#878ccc',
    500: '#4d5fb5',
    950: '#000000',
  },
}
SCSS
$custom: #4d5fb5;
$custom-light: #878ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d5fb5",
  "rgb": {
    "r": 77,
    "g": 95,
    "b": 181
  },
  "hsl": {
    "h": 229.615,
    "s": 41.27,
    "l": 50.588
  },
  "oklch": {
    "l": 0.515,
    "c": 0.13665,
    "h": 271.9
  },
  "luminance": 0.13098
}

Semantic roles & 50–950 ramp

primary
#4D5FB5
secondary
#C6BE98
accent
#BC57D1
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #4D5FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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