#4D40D1#4D40D1

#4D40D1 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.2% C 0.213 H 278.8°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#4D40D1
RGBrgb(77, 64, 209)
HSLhsl(245, 61%, 54%)
HSVhsv(245, 69%, 82%)
CMYKcmyk(63.2%, 69.4%, 0%, 18%)
CIE-LABlab(37.57, 47.47, -72.83)
CIE-LCHlch(37.57, 86.93, 303.09°)
OKLaboklab(48.2% 0.0326 -0.2101)
OKLCHoklch(48.2% 0.213 278.8)
XYZxyz(16.3989, 9.8467, 61.3457)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40D1 #C4D140
analogous
#407BD1 #4D40D1 #9540D1
triadic
#4D40D1 #D14D40 #40D14D
tetradic
#4D40D1 #D1407B #C4D140 #40D195
square
#4D40D1 #D1407B #C4D140 #40D195
split-complementary
#4D40D1 #D19540 #7BD140
monochromatic
#251D79 #3529AB #4D40D1 #7B71DD #A9A3E9

Accessibility & contrast

On white

7.07
#4D40D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4D40D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40D1
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40D1#FFFFFF#000000##FFFFFF
##4D40D11.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED5
Deuteranopia (green-blind)
#0053CE
Tritanopia (blue-blind)
#006784
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4d40d1;
/* rgb */ color: rgb(77, 64, 209);
/* oklch */ color: oklch(48.2% 0.213 278.8);
Tailwind
colors: {
  custom: {
    50: '#8e76e0',
    500: '#4d40d1',
    950: '#000000',
  },
}
SCSS
$custom: #4d40d1;
$custom-light: #8e76e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40d1",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 245.379,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48203,
    "c": 0.21263,
    "h": 278.8
  },
  "luminance": 0.09848
}

Semantic roles & 50–950 ramp

primary
#4D40D1
secondary
#D0D597
accent
#E444D6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4D40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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