#4E40B4#4E40B4

#4E40B4 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.7% C 0.176 H 282.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#4E40B4
RGBrgb(78, 64, 180)
HSLhsl(247, 48%, 48%)
HSVhsv(247, 64%, 71%)
CMYKcmyk(56.7%, 64.4%, 0%, 29.4%)
CIE-LABlab(35.16, 38.46, -59.80)
CIE-LCHlch(35.16, 71.10, 302.75°)
OKLaboklab(45.73% 0.0377 -0.1719)
OKLCHoklch(45.73% 0.176 282.4)
XYZxyz(13.2110, 8.5809, 44.1313)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40B4 #A6B440
analogous
#406CB4 #4E40B4 #8840B4
triadic
#4E40B4 #B44E40 #40B44E
tetradic
#4E40B4 #B4406C #A6B440 #40B488
square
#4E40B4 #B4406C #A6B440 #40B488
split-complementary
#4E40B4 #B48840 #6CB440
monochromatic
#27205A #3A3087 #4E40B4 #7468C9 #9D95D9

Accessibility & contrast

On white

7.73
#4E40B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4E40B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40B4
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40B4#FFFFFF#000000##FFFFFF
##4E40B41.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#004FB2
Tritanopia (blue-blind)
#1A5D74
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e40b4;
/* rgb */ color: rgb(78, 64, 180);
/* oklch */ color: oklch(45.7% 0.176 282.4);
Tailwind
colors: {
  custom: {
    50: '#8976cb',
    500: '#4e40b4',
    950: '#000000',
  },
}
SCSS
$custom: #4e40b4;
$custom-light: #8976cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40b4",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 247.241,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45726,
    "c": 0.17595,
    "h": 282.4
  },
  "luminance": 0.08582
}

Semantic roles & 50–950 ramp

primary
#4E40B4
secondary
#BEC58B
accent
#D751C7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #4E40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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