#4D5FB2#4D5FB2

#4D5FB2 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.3% C 0.132 H 271.8°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#4D5FB2
RGBrgb(77, 95, 178)
HSLhsl(229, 40%, 50%)
HSVhsv(229, 57%, 70%)
CMYKcmyk(56.7%, 46.6%, 0%, 30.2%)
CIE-LABlab(42.73, 18.18, -46.40)
CIE-LCHlch(42.73, 49.84, 291.40°)
OKLaboklab(51.3% 0.0042 -0.1323)
OKLCHoklch(51.3% 0.132 271.8)
XYZxyz(15.1860, 12.9754, 43.8151)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D5FB2 #B2A04D
analogous
#4D91B2 #4D5FB2 #6E4DB2
triadic
#4D5FB2 #B24D5F #5FB24D
tetradic
#4D5FB2 #B24D91 #B2A04D #4DB26E
square
#4D5FB2 #B24D91 #B2A04D #4DB26E
split-complementary
#4D5FB2 #B26E4D #91B24D
monochromatic
#28315D #3B4887 #4D5FB2 #7885C4 #A2ACD7

Accessibility & contrast

On white

5.84
#4D5FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#4D5FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D5FB2
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D5FB2#FFFFFF#000000##FFFFFF
##4D5FB21.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3969B5
Deuteranopia (green-blind)
#2B61B0
Tritanopia (blue-blind)
#0F7180
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4d5fb2;
/* rgb */ color: rgb(77, 95, 178);
/* oklch */ color: oklch(51.3% 0.132 271.8);
Tailwind
colors: {
  custom: {
    50: '#878cc9',
    500: '#4d5fb2',
    950: '#000000',
  },
}
SCSS
$custom: #4d5fb2;
$custom-light: #878cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d5fb2",
  "rgb": {
    "r": 77,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 229.307,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.51301,
    "c": 0.13234,
    "h": 271.8
  },
  "luminance": 0.12977
}

Semantic roles & 50–950 ramp

primary
#4D5FB2
secondary
#C4BC97
accent
#BA58CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #4D5FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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