#4C40C7#4C40C7

#4C40C7 is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.2% C 0.200 H 279.4°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#4C40C7
RGBrgb(76, 64, 199)
HSLhsl(245, 55%, 52%)
HSVhsv(245, 68%, 78%)
CMYKcmyk(61.8%, 67.8%, 0%, 22%)
CIE-LABlab(36.60, 44.18, -68.61)
CIE-LCHlch(36.60, 81.60, 302.78°)
OKLaboklab(47.22% 0.0328 -0.1978)
OKLCHoklch(47.22% 0.2 279.4)
XYZxyz(15.1194, 9.3257, 55.0250)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40C7 #BBC740
analogous
#4078C7 #4C40C7 #9040C7
triadic
#4C40C7 #C74C40 #40C74C
tetradic
#4C40C7 #C74078 #BBC740 #40C790
square
#4C40C7 #C74078 #BBC740 #40C790
split-complementary
#4C40C7 #C79040 #78C740
monochromatic
#27206D #382E9C #4C40C7 #786FD5 #A59FE3

Accessibility & contrast

On white

7.33
#4C40C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#4C40C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40C7
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40C7#FFFFFF#000000##FFFFFF
##4C40C71.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCB
Deuteranopia (green-blind)
#0051C4
Tritanopia (blue-blind)
#00647E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4c40c7;
/* rgb */ color: rgb(76, 64, 199);
/* oklch */ color: oklch(47.2% 0.200 279.4);
Tailwind
colors: {
  custom: {
    50: '#8c76d9',
    500: '#4c40c7',
    950: '#000000',
  },
}
SCSS
$custom: #4c40c7;
$custom-light: #8c76d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40c7",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 245.333,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47222,
    "c": 0.20048,
    "h": 279.4
  },
  "luminance": 0.09327
}

Semantic roles & 50–950 ramp

primary
#4C40C7
secondary
#CACF94
accent
#DE4AD1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4C40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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