#4D40DE#4D40DE

#4D40DE is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.4% C 0.228 H 277.7°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#4D40DE
RGBrgb(77, 64, 222)
HSLhsl(245, 71%, 56%)
HSVhsv(245, 71%, 87%)
CMYKcmyk(65.3%, 71.2%, 0%, 12.9%)
CIE-LABlab(38.75, 51.52, -78.35)
CIE-LCHlch(38.75, 93.77, 303.33°)
OKLaboklab(49.41% 0.0304 -0.2262)
OKLCHoklch(49.41% 0.228 277.7)
XYZxyz(18.0745, 10.5170, 70.1706)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40DE #D1DE40
analogous
#4082DE #4D40DE #9C40DE
triadic
#4D40DE #DE4D40 #40DE4D
tetradic
#4D40DE #DE4082 #D1DE40 #40DE9C
square
#4D40DE #DE4082 #D1DE40 #40DE9C
split-complementary
#4D40DE #DE9C40 #82DE40
monochromatic
#22188B #2E21C0 #4D40DE #7E74E7 #AEA8F0

Accessibility & contrast

On white

6.77
#4D40DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#4D40DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D40DE
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40DE#FFFFFF#000000##FFFFFF
##4D40DE1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E3
Deuteranopia (green-blind)
#0055DB
Tritanopia (blue-blind)
#006C8B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4d40de;
/* rgb */ color: rgb(77, 64, 222);
/* oklch */ color: oklch(49.4% 0.228 277.7);
Tailwind
colors: {
  custom: {
    50: '#9077ea',
    500: '#4d40de',
    950: '#000000',
  },
}
SCSS
$custom: #4d40de;
$custom-light: #9077ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40de",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 222
  },
  "hsl": {
    "h": 244.937,
    "s": 70.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.49414,
    "c": 0.22828,
    "h": 277.7
  },
  "luminance": 0.10518
}

Semantic roles & 50–950 ramp

primary
#4D40DE
secondary
#D8DE9C
accent
#ED3ADF
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4D40DE

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

Preview Lab → · Contrast checker → · Palette generator →

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