#4D40D2#4D40D2

#4D40D2 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.214 H 278.7°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#4D40D2
RGBrgb(77, 64, 210)
HSLhsl(245, 62%, 54%)
HSVhsv(245, 70%, 82%)
CMYKcmyk(63.3%, 69.5%, 0%, 17.6%)
CIE-LABlab(37.66, 47.78, -73.26)
CIE-LCHlch(37.66, 87.46, 303.11°)
OKLaboklab(48.3% 0.0325 -0.2114)
OKLCHoklch(48.3% 0.214 278.7)
XYZxyz(16.5231, 9.8964, 61.9997)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40D2 #C5D240
analogous
#407CD2 #4D40D2 #9640D2
triadic
#4D40D2 #D24D40 #40D24D
tetradic
#4D40D2 #D2407C #C5D240 #40D296
square
#4D40D2 #D2407C #C5D240 #40D296
split-complementary
#4D40D2 #D29640 #7CD240
monochromatic
#251D7B #3429AC #4D40D2 #7B72DE #A9A3E9

Accessibility & contrast

On white

7.05
#4D40D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4D40D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40D2
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40D2#FFFFFF#000000##FFFFFF
##4D40D21.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#0053CF
Tritanopia (blue-blind)
#006884
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4d40d2;
/* rgb */ color: rgb(77, 64, 210);
/* oklch */ color: oklch(48.3% 0.214 278.7);
Tailwind
colors: {
  custom: {
    50: '#8e76e1',
    500: '#4d40d2',
    950: '#000000',
  },
}
SCSS
$custom: #4d40d2;
$custom-light: #8e76e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40d2",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 245.342,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48295,
    "c": 0.21385,
    "h": 278.7
  },
  "luminance": 0.09898
}

Semantic roles & 50–950 ramp

primary
#4D40D2
secondary
#D1D698
accent
#E543D7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4D40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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