#4D40E3#4D40E3

#4D40E3 is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.9% C 0.234 H 277.2°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#4D40E3
RGBrgb(77, 64, 227)
HSLhsl(245, 74%, 57%)
HSVhsv(245, 72%, 89%)
CMYKcmyk(66.1%, 71.8%, 0%, 11%)
CIE-LABlab(39.22, 53.06, -80.43)
CIE-LCHlch(39.22, 96.36, 303.41°)
OKLaboklab(49.89% 0.0295 -0.2323)
OKLCHoklch(49.89% 0.234 277.2)
XYZxyz(18.7546, 10.7890, 73.7523)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40E3 #D6E340
analogous
#4085E3 #4D40E3 #9E40E3
triadic
#4D40E3 #E34D40 #40E34D
tetradic
#4D40E3 #E34085 #D6E340 #40E39E
square
#4D40E3 #E34085 #D6E340 #40E39E
split-complementary
#4D40E3 #E39E40 #85E340
monochromatic
#201693 #2B1DC8 #4D40E3 #7F75EB #B0ABF3

Accessibility & contrast

On white

6.65
#4D40E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#4D40E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D40E3
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40E3#FFFFFF#000000##FFFFFF
##4D40E31.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E8
Deuteranopia (green-blind)
#0055E0
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4d40e3;
/* rgb */ color: rgb(77, 64, 227);
/* oklch */ color: oklch(49.9% 0.234 277.2);
Tailwind
colors: {
  custom: {
    50: '#9177ed',
    500: '#4d40e3',
    950: '#000000',
  },
}
SCSS
$custom: #4d40e3;
$custom-light: #9177ed;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40e3",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 244.785,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.49888,
    "c": 0.23419,
    "h": 277.2
  },
  "luminance": 0.10791
}

Semantic roles & 50–950 ramp

primary
#4D40E3
secondary
#DBE19E
accent
#F137E2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #4D40E3

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

Preview Lab → · Contrast checker → · Palette generator →

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