#4E40B7#4E40B7

#4E40B7 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 46.0% C 0.180 H 282.0°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#4E40B7
RGBrgb(78, 64, 183)
HSLhsl(247, 48%, 48%)
HSVhsv(247, 65%, 72%)
CMYKcmyk(57.4%, 65%, 0%, 28.2%)
CIE-LABlab(35.41, 39.41, -61.17)
CIE-LCHlch(35.41, 72.77, 302.79°)
OKLaboklab(45.98% 0.0374 -0.1759)
OKLCHoklch(45.98% 0.18 282)
XYZxyz(13.5199, 8.7045, 45.7583)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40B7 #A9B740
analogous
#406DB7 #4E40B7 #8940B7
triadic
#4E40B7 #B74E40 #40B74E
tetradic
#4E40B7 #B7406D #A9B740 #40B789
square
#4E40B7 #B7406D #A9B740 #40B789
split-complementary
#4E40B7 #B78940 #6DB740
monochromatic
#27205C #3B308A #4E40B7 #7569CB #9F97DB

Accessibility & contrast

On white

7.66
#4E40B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4E40B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40B7
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40B7#FFFFFF#000000##FFFFFF
##4E40B71.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#145E76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e40b7;
/* rgb */ color: rgb(78, 64, 183);
/* oklch */ color: oklch(46.0% 0.180 282.0);
Tailwind
colors: {
  custom: {
    50: '#8a76ce',
    500: '#4e40b7',
    950: '#000000',
  },
}
SCSS
$custom: #4e40b7;
$custom-light: #8a76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40b7",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 247.059,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4598,
    "c": 0.17984,
    "h": 282
  },
  "luminance": 0.08705
}

Semantic roles & 50–950 ramp

primary
#4E40B7
secondary
#BFC68D
accent
#D850C8
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4E40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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