#4E40B0#4E40B0

#4E40B0 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.4% C 0.171 H 282.9°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#4E40B0
RGBrgb(78, 64, 176)
HSLhsl(248, 47%, 47%)
HSVhsv(248, 64%, 69%)
CMYKcmyk(55.7%, 63.6%, 0%, 31%)
CIE-LABlab(34.84, 37.20, -57.95)
CIE-LCHlch(34.84, 68.86, 302.70°)
OKLaboklab(45.39% 0.0381 -0.1664)
OKLCHoklch(45.39% 0.171 282.9)
XYZxyz(12.8093, 8.4203, 42.0162)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40B0 #A2B040
analogous
#406AB0 #4E40B0 #8640B0
triadic
#4E40B0 #B04E40 #40B04E
tetradic
#4E40B0 #B0406A #A2B040 #40B086
square
#4E40B0 #B0406A #A2B040 #40B086
split-complementary
#4E40B0 #B08640 #6AB040
monochromatic
#261F56 #3A3083 #4E40B0 #7266C7 #9B93D8

Accessibility & contrast

On white

7.82
#4E40B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4E40B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40B0
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40B0#FFFFFF#000000##FFFFFF
##4E40B01.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B4
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#205C72
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e40b0;
/* rgb */ color: rgb(78, 64, 176);
/* oklch */ color: oklch(45.4% 0.171 282.9);
Tailwind
colors: {
  custom: {
    50: '#8976c8',
    500: '#4e40b0',
    950: '#000000',
  },
}
SCSS
$custom: #4e40b0;
$custom-light: #8976c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40b0",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 247.5,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45392,
    "c": 0.17073,
    "h": 282.9
  },
  "luminance": 0.08421
}

Semantic roles & 50–950 ramp

primary
#4E40B0
secondary
#BCC389
accent
#D651C6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E40B0

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

Preview Lab → · Contrast checker → · Palette generator →

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