#4D40D6#4D40D6

#4D40D6 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.7% C 0.219 H 278.4°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#4D40D6
RGBrgb(77, 64, 214)
HSLhsl(245, 65%, 55%)
HSVhsv(245, 70%, 84%)
CMYKcmyk(64%, 70.1%, 0%, 16.1%)
CIE-LABlab(38.02, 49.03, -74.97)
CIE-LCHlch(38.02, 89.58, 303.18°)
OKLaboklab(48.67% 0.0318 -0.2164)
OKLCHoklch(48.67% 0.219 278.4)
XYZxyz(17.0277, 10.0982, 64.6571)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40D6 #C9D640
analogous
#407ED6 #4D40D6 #9840D6
triadic
#4D40D6 #D64D40 #40D64D
tetradic
#4D40D6 #D6407E #C9D640 #40D698
square
#4D40D6 #D6407E #C9D640 #40D698
split-complementary
#4D40D6 #D69840 #7ED640
monochromatic
#241B80 #3226B2 #4D40D6 #7C72E1 #ABA5EC

Accessibility & contrast

On white

6.95
#4D40D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4D40D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D40D6
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40D6#FFFFFF#000000##FFFFFF
##4D40D61.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDA
Deuteranopia (green-blind)
#0053D3
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4d40d6;
/* rgb */ color: rgb(77, 64, 214);
/* oklch */ color: oklch(48.7% 0.219 278.4);
Tailwind
colors: {
  custom: {
    50: '#8f77e4',
    500: '#4d40d6',
    950: '#000000',
  },
}
SCSS
$custom: #4d40d6;
$custom-light: #8f77e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40d6",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 245.2,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.48665,
    "c": 0.21869,
    "h": 278.4
  },
  "luminance": 0.101
}

Semantic roles & 50–950 ramp

primary
#4D40D6
secondary
#D3D999
accent
#E840D9
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4D40D6

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

Preview Lab → · Contrast checker → · Palette generator →

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