#4D58D4#4D58D4

#4D58D4 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.4% C 0.188 H 274.1°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#4D58D4
RGBrgb(77, 88, 212)
HSLhsl(235, 61%, 57%)
HSVhsv(235, 64%, 83%)
CMYKcmyk(63.7%, 58.5%, 0%, 16.9%)
CIE-LABlab(43.23, 34.12, -65.31)
CIE-LCHlch(43.23, 73.69, 297.58°)
OKLaboklab(52.41% 0.0133 -0.1879)
OKLCHoklch(52.41% 0.188 274.1)
XYZxyz(18.4300, 13.3091, 63.8723)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D58D4 #D4C94D
analogous
#4D9CD4 #4D58D4 #864DD4
triadic
#4D58D4 #D44D58 #58D44D
tetradic
#4D58D4 #D44D9C #D4C94D #4DD486
square
#4D58D4 #D44D9C #D4C94D #4DD486
split-complementary
#4D58D4 #D4864D #9CD44D
monochromatic
#202986 #2C38B7 #4D58D4 #7E86E0 #B0B4EC

Accessibility & contrast

On white

5.73
#4D58D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#4D58D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D58D4
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D58D4#FFFFFF#000000##FFFFFF
##4D58D41.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD8
Deuteranopia (green-blind)
#0060D2
Tritanopia (blue-blind)
#00768D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4d58d4;
/* rgb */ color: rgb(77, 88, 212);
/* oklch */ color: oklch(52.4% 0.188 274.1);
Tailwind
colors: {
  custom: {
    50: '#8d87e2',
    500: '#4d58d4',
    950: '#000000',
  },
}
SCSS
$custom: #4d58d4;
$custom-light: #8d87e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d58d4",
  "rgb": {
    "r": 77,
    "g": 88,
    "b": 212
  },
  "hsl": {
    "h": 235.111,
    "s": 61.086,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52409,
    "c": 0.18842,
    "h": 274.1
  },
  "luminance": 0.13311
}

Semantic roles & 50–950 ramp

primary
#4D58D4
secondary
#DAD6A3
accent
#D744E4
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0D0B15
muted
#7E7C84

Preview Lab

Preview with #4D58D4

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

Preview Lab → · Contrast checker → · Palette generator →

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