#4D40E8#4D40E8

#4D40E8 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.4% C 0.240 H 276.8°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#4D40E8
RGBrgb(77, 64, 232)
HSLhsl(245, 79%, 58%)
HSVhsv(245, 72%, 91%)
CMYKcmyk(66.8%, 72.4%, 0%, 9%)
CIE-LABlab(39.70, 54.60, -82.50)
CIE-LCHlch(39.70, 98.93, 303.50°)
OKLaboklab(50.37% 0.0285 -0.2383)
OKLCHoklch(50.37% 0.24 276.8)
XYZxyz(19.4547, 11.0690, 77.4396)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40E8 #DBE840
analogous
#4087E8 #4D40E8 #A140E8
triadic
#4D40E8 #E84D40 #40E84D
tetradic
#4D40E8 #E84087 #DBE840 #40E8A1
square
#4D40E8 #E84087 #DBE840 #40E8A1
split-complementary
#4D40E8 #E8A140 #87E840
monochromatic
#1D139B #2719D2 #4D40E8 #8077EF #B3ADF5

Accessibility & contrast

On white

6.53
#4D40E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#4D40E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D40E8
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40E8#FFFFFF#000000##FFFFFF
##4D40E81.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065ED
Deuteranopia (green-blind)
#0056E5
Tritanopia (blue-blind)
#007091
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4d40e8;
/* rgb */ color: rgb(77, 64, 232);
/* oklch */ color: oklch(50.4% 0.240 276.8);
Tailwind
colors: {
  custom: {
    50: '#9277f1',
    500: '#4d40e8',
    950: '#000000',
  },
}
SCSS
$custom: #4d40e8;
$custom-light: #9277f1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40e8",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 232
  },
  "hsl": {
    "h": 244.643,
    "s": 78.505,
    "l": 58.039
  },
  "oklch": {
    "l": 0.50367,
    "c": 0.24005,
    "h": 276.8
  },
  "luminance": 0.11071
}

Semantic roles & 50–950 ramp

primary
#4D40E8
secondary
#DEE3A0
accent
#F533E6
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0917
muted
#7E7B85

Preview Lab

Preview with #4D40E8

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

Preview Lab → · Contrast checker → · Palette generator →

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