#4C40E3#4C40E3

#4C40E3 is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.8% C 0.234 H 276.9°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#4C40E3
RGBrgb(76, 64, 227)
HSLhsl(244, 74%, 57%)
HSVhsv(244, 72%, 89%)
CMYKcmyk(66.5%, 71.8%, 0%, 11%)
CIE-LABlab(39.15, 52.95, -80.55)
CIE-LCHlch(39.15, 96.40, 303.32°)
OKLaboklab(49.82% 0.0282 -0.2327)
OKLCHoklch(49.82% 0.234 276.9)
XYZxyz(18.6745, 10.7477, 73.7485)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40E3 #D7E340
analogous
#4086E3 #4C40E3 #9D40E3
triadic
#4C40E3 #E34C40 #40E34C
tetradic
#4C40E3 #E34086 #D7E340 #40E39D
square
#4C40E3 #E34086 #D7E340 #40E39D
split-complementary
#4C40E3 #E39D40 #86E340
monochromatic
#1F1693 #2A1DC8 #4C40E3 #7E75EB #B0ABF3

Accessibility & contrast

On white

6.67
#4C40E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#4C40E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C40E3
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40E3#FFFFFF#000000##FFFFFF
##4C40E31.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.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: #4c40e3;
/* rgb */ color: rgb(76, 64, 227);
/* oklch */ color: oklch(49.8% 0.234 276.9);
Tailwind
colors: {
  custom: {
    50: '#9177ed',
    500: '#4c40e3',
    950: '#000000',
  },
}
SCSS
$custom: #4c40e3;
$custom-light: #9177ed;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40e3",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 244.417,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.4982,
    "c": 0.23441,
    "h": 276.9
  },
  "luminance": 0.10749
}

Semantic roles & 50–950 ramp

primary
#4C40E3
secondary
#DCE19E
accent
#F137E3
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4C40E3

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

Preview Lab → · Contrast checker → · Palette generator →

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