#4D58D1#4D58D1

#4D58D1 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.2% C 0.184 H 274.2°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#4D58D1
RGBrgb(77, 88, 209)
HSLhsl(235, 59%, 56%)
HSVhsv(235, 63%, 82%)
CMYKcmyk(63.2%, 57.9%, 0%, 18%)
CIE-LABlab(43.00, 33.10, -63.95)
CIE-LCHlch(43.00, 72.01, 297.37°)
OKLaboklab(52.17% 0.0134 -0.1839)
OKLCHoklch(52.17% 0.184 274.2)
XYZxyz(18.0551, 13.1592, 61.8977)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D58D1 #D1C64D
analogous
#4D9AD1 #4D58D1 #844DD1
triadic
#4D58D1 #D14D58 #58D14D
tetradic
#4D58D1 #D14D9A #D1C64D #4DD184
square
#4D58D1 #D14D9A #D1C64D #4DD184
split-complementary
#4D58D1 #D1844D #9AD14D
monochromatic
#222A82 #2E39B3 #4D58D1 #7E86DE #AEB3EA

Accessibility & contrast

On white

5.78
#4D58D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#4D58D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D58D1
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D58D1#FFFFFF#000000##FFFFFF
##4D58D11.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD5
Deuteranopia (green-blind)
#0060CF
Tritanopia (blue-blind)
#00758C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4d58d1;
/* rgb */ color: rgb(77, 88, 209);
/* oklch */ color: oklch(52.2% 0.184 274.2);
Tailwind
colors: {
  custom: {
    50: '#8c87e0',
    500: '#4d58d1',
    950: '#000000',
  },
}
SCSS
$custom: #4d58d1;
$custom-light: #8c87e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d58d1",
  "rgb": {
    "r": 77,
    "g": 88,
    "b": 209
  },
  "hsl": {
    "h": 235,
    "s": 58.929,
    "l": 56.078
  },
  "oklch": {
    "l": 0.52173,
    "c": 0.18443,
    "h": 274.2
  },
  "luminance": 0.13161
}

Semantic roles & 50–950 ramp

primary
#4D58D1
secondary
#D8D4A2
accent
#D546E2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #4D58D1

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

Preview Lab → · Contrast checker → · Palette generator →

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