#4E40E3#4E40E3

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

Color values

HEX#4E40E3
RGBrgb(78, 64, 227)
HSLhsl(245, 74%, 57%)
HSVhsv(245, 72%, 89%)
CMYKcmyk(65.6%, 71.8%, 0%, 11%)
CIE-LABlab(39.29, 53.17, -80.31)
CIE-LCHlch(39.29, 96.32, 303.51°)
OKLaboklab(49.96% 0.0308 -0.2319)
OKLCHoklch(49.96% 0.234 277.6)
XYZxyz(18.8359, 10.8309, 73.7561)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40E3 #D5E340
analogous
#4084E3 #4E40E3 #9F40E3
triadic
#4E40E3 #E34E40 #40E34E
tetradic
#4E40E3 #E34084 #D5E340 #40E39F
square
#4E40E3 #E34084 #D5E340 #40E39F
split-complementary
#4E40E3 #E39F40 #84E340
monochromatic
#201693 #2C1DC8 #4E40E3 #7F75EB #B1ABF3

Accessibility & contrast

On white

6.63
#4E40E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#4E40E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E40E3
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40E3#FFFFFF#000000##FFFFFF
##4E40E31.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E8
Deuteranopia (green-blind)
#0056E0
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4e40e3;
/* rgb */ color: rgb(78, 64, 227);
/* oklch */ color: oklch(50.0% 0.234 277.6);
Tailwind
colors: {
  custom: {
    50: '#9277ed',
    500: '#4e40e3',
    950: '#000000',
  },
}
SCSS
$custom: #4e40e3;
$custom-light: #9277ed;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40e3",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 245.153,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.49957,
    "c": 0.23398,
    "h": 277.6
  },
  "luminance": 0.10833
}

Semantic roles & 50–950 ramp

primary
#4E40E3
secondary
#DBE19E
accent
#F137E1
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #4E40E3

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

Preview Lab → · Contrast checker → · Palette generator →

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