#4D5FAC#4D5FAC

#4D5FAC is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.9% C 0.124 H 271.5°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#4D5FAC
RGBrgb(77, 95, 172)
HSLhsl(229, 38%, 49%)
HSVhsv(229, 55%, 67%)
CMYKcmyk(55.2%, 44.8%, 0%, 32.5%)
CIE-LABlab(42.37, 16.17, -43.45)
CIE-LCHlch(42.37, 46.36, 290.41°)
OKLaboklab(50.91% 0.0032 -0.1236)
OKLCHoklch(50.91% 0.124 271.5)
XYZxyz(14.5967, 12.7397, 40.7116)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D5FAC #AC9A4D
analogous
#4D8FAC #4D5FAC #6B4DAC
triadic
#4D5FAC #AC4D5F #5FAC4D
tetradic
#4D5FAC #AC4D8F #AC9A4D #4DAC6B
square
#4D5FAC #AC4D8F #AC9A4D #4DAC6B
split-complementary
#4D5FAC #AC6B4D #8FAC4D
monochromatic
#273057 #3A4882 #4D5FAC #7583C1 #9FA9D4

Accessibility & contrast

On white

5.92
#4D5FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#4D5FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D5FAC
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D5FAC#FFFFFF#000000##FFFFFF
##4D5FAC1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D68AF
Deuteranopia (green-blind)
#3260AA
Tritanopia (blue-blind)
#1A707D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4d5fac;
/* rgb */ color: rgb(77, 95, 172);
/* oklch */ color: oklch(50.9% 0.124 271.5);
Tailwind
colors: {
  custom: {
    50: '#868cc5',
    500: '#4d5fac',
    950: '#000000',
  },
}
SCSS
$custom: #4d5fac;
$custom-light: #868cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d5fac",
  "rgb": {
    "r": 77,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 228.632,
    "s": 38.153,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50912,
    "c": 0.12363,
    "h": 271.5
  },
  "luminance": 0.12741
}

Semantic roles & 50–950 ramp

primary
#4D5FAC
secondary
#C1B894
accent
#B85ACE
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #4D5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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