#4C40D7#4C40D7

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

Color values

HEX#4C40D7
RGBrgb(76, 64, 215)
HSLhsl(245, 65%, 55%)
HSVhsv(245, 70%, 84%)
CMYKcmyk(64.7%, 70.2%, 0%, 15.7%)
CIE-LABlab(38.04, 49.22, -75.52)
CIE-LCHlch(38.04, 90.14, 303.09°)
OKLaboklab(48.69% 0.0303 -0.218)
OKLCHoklch(48.69% 0.22 277.9)
XYZxyz(17.0757, 10.1082, 65.3280)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40D7 #CBD740
analogous
#4080D7 #4C40D7 #9740D7
triadic
#4C40D7 #D74C40 #40D74C
tetradic
#4C40D7 #D74080 #CBD740 #40D797
square
#4C40D7 #D74080 #CBD740 #40D797
split-complementary
#4C40D7 #D79740 #80D740
monochromatic
#231B81 #3126B4 #4C40D7 #7B73E2 #ABA5EC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C40D7#FFFFFF#000000##FFFFFF
##4C40D71.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)
#0060DC
Deuteranopia (green-blind)
#0053D4
Tritanopia (blue-blind)
#006987
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4c40d7;
/* rgb */ color: rgb(76, 64, 215);
/* oklch */ color: oklch(48.7% 0.220 277.9);
Tailwind
colors: {
  custom: {
    50: '#8f77e5',
    500: '#4c40d7',
    950: '#000000',
  },
}
SCSS
$custom: #4c40d7;
$custom-light: #8f77e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40d7",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 244.768,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.48686,
    "c": 0.2201,
    "h": 277.9
  },
  "luminance": 0.1011
}

Semantic roles & 50–950 ramp

primary
#4C40D7
secondary
#D4D99A
accent
#E83FDB
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4C40D7

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

Preview Lab → · Contrast checker → · Palette generator →

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