#4D40D9#4D40D9

#4D40D9 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 48.9% C 0.222 H 278.1°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#4D40D9
RGBrgb(77, 64, 217)
HSLhsl(245, 67%, 55%)
HSVhsv(245, 71%, 85%)
CMYKcmyk(64.5%, 70.5%, 0%, 14.9%)
CIE-LABlab(38.29, 49.96, -76.24)
CIE-LCHlch(38.29, 91.16, 303.24°)
OKLaboklab(48.94% 0.0313 -0.2201)
OKLCHoklch(48.94% 0.222 278.1)
XYZxyz(17.4143, 10.2529, 66.6935)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40D9 #CCD940
analogous
#4080D9 #4D40D9 #9940D9
triadic
#4D40D9 #D94D40 #40D94D
tetradic
#4D40D9 #D94080 #CCD940 #40D999
square
#4D40D9 #D94080 #CCD940 #40D999
split-complementary
#4D40D9 #D99940 #80D940
monochromatic
#231A84 #3124B7 #4D40D9 #7D73E3 #ACA6ED

Accessibility & contrast

On white

6.88
#4D40D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#4D40D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D40D9
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40D9#FFFFFF#000000##FFFFFF
##4D40D91.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DE
Deuteranopia (green-blind)
#0054D6
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4d40d9;
/* rgb */ color: rgb(77, 64, 217);
/* oklch */ color: oklch(48.9% 0.222 278.1);
Tailwind
colors: {
  custom: {
    50: '#9077e6',
    500: '#4d40d9',
    950: '#000000',
  },
}
SCSS
$custom: #4d40d9;
$custom-light: #9077e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40d9",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 245.098,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.48944,
    "c": 0.22231,
    "h": 278.1
  },
  "luminance": 0.10254
}

Semantic roles & 50–950 ramp

primary
#4D40D9
secondary
#D5DA9A
accent
#EA3EDB
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4D40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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