#4C40E8#4C40E8

#4C40E8 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.3% C 0.240 H 276.5°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#4C40E8
RGBrgb(76, 64, 232)
HSLhsl(244, 79%, 58%)
HSVhsv(244, 72%, 91%)
CMYKcmyk(67.2%, 72.4%, 0%, 9%)
CIE-LABlab(39.63, 54.49, -82.61)
CIE-LCHlch(39.63, 98.96, 303.41°)
OKLaboklab(50.3% 0.0273 -0.2387)
OKLCHoklch(50.3% 0.24 276.5)
XYZxyz(19.3746, 11.0278, 77.4358)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40E8 #DCE840
analogous
#4088E8 #4C40E8 #A040E8
triadic
#4C40E8 #E84C40 #40E84C
tetradic
#4C40E8 #E84088 #DCE840 #40E8A0
square
#4C40E8 #E84088 #DCE840 #40E8A0
split-complementary
#4C40E8 #E8A040 #88E840
monochromatic
#1C139B #2619D2 #4C40E8 #7F77EF #B2ADF5

Accessibility & contrast

On white

6.55
#4C40E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4C40E8
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40E8#FFFFFF#000000##FFFFFF
##4C40E81.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c40e8;
/* rgb */ color: rgb(76, 64, 232);
/* oklch */ color: oklch(50.3% 0.240 276.5);
Tailwind
colors: {
  custom: {
    50: '#9277f1',
    500: '#4c40e8',
    950: '#000000',
  },
}
SCSS
$custom: #4c40e8;
$custom-light: #9277f1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40e8",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 232
  },
  "hsl": {
    "h": 244.286,
    "s": 78.505,
    "l": 58.039
  },
  "oklch": {
    "l": 0.503,
    "c": 0.24027,
    "h": 276.5
  },
  "luminance": 0.11029
}

Semantic roles & 50–950 ramp

primary
#4C40E8
secondary
#DFE3A0
accent
#F533E7
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0917
muted
#7E7B85

Preview Lab

Preview with #4C40E8

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

Preview Lab → · Contrast checker → · Palette generator →

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