#4E40E2#4E40E2

#4E40E2 is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.9% C 0.233 H 277.6°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#4E40E2
RGBrgb(78, 64, 226)
HSLhsl(245, 74%, 57%)
HSVhsv(245, 72%, 89%)
CMYKcmyk(65.5%, 71.7%, 0%, 11.4%)
CIE-LABlab(39.20, 52.87, -79.90)
CIE-LCHlch(39.20, 95.80, 303.49°)
OKLaboklab(49.86% 0.0309 -0.2307)
OKLCHoklch(49.86% 0.233 277.6)
XYZxyz(18.6983, 10.7759, 73.0313)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40E2 #D4E240
analogous
#4083E2 #4E40E2 #9F40E2
triadic
#4E40E2 #E24E40 #40E24E
tetradic
#4E40E2 #E24083 #D4E240 #40E29F
square
#4E40E2 #E24083 #D4E240 #40E29F
split-complementary
#4E40E2 #E29F40 #83E240
monochromatic
#211692 #2D1EC7 #4E40E2 #7F75EA #B0AAF2

Accessibility & contrast

On white

6.66
#4E40E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#4E40E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E40E2
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40E2#FFFFFF#000000##FFFFFF
##4E40E21.006.663.166.66
#FFFFFF6.661.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E7
Deuteranopia (green-blind)
#0055DF
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4e40e2;
/* rgb */ color: rgb(78, 64, 226);
/* oklch */ color: oklch(49.9% 0.233 277.6);
Tailwind
colors: {
  custom: {
    50: '#9277ec',
    500: '#4e40e2',
    950: '#000000',
  },
}
SCSS
$custom: #4e40e2;
$custom-light: #9277ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40e2",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 245.185,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.49862,
    "c": 0.23281,
    "h": 277.6
  },
  "luminance": 0.10777
}

Semantic roles & 50–950 ramp

primary
#4E40E2
secondary
#DAE09E
accent
#F038E0
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #4E40E2

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

Preview Lab → · Contrast checker → · Palette generator →

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