#4E40B3#4E40B3

#4E40B3 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.6% C 0.175 H 282.5°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#4E40B3
RGBrgb(78, 64, 179)
HSLhsl(247, 47%, 48%)
HSVhsv(247, 64%, 70%)
CMYKcmyk(56.4%, 64.2%, 0%, 29.8%)
CIE-LABlab(35.08, 38.15, -59.34)
CIE-LCHlch(35.08, 70.54, 302.74°)
OKLaboklab(45.64% 0.0378 -0.1705)
OKLCHoklch(45.64% 0.175 282.5)
XYZxyz(13.1095, 8.5403, 43.5967)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40B3 #A5B340
analogous
#406CB3 #4E40B3 #8740B3
triadic
#4E40B3 #B34E40 #40B34E
tetradic
#4E40B3 #B3406C #A5B340 #40B387
square
#4E40B3 #B3406C #A5B340 #40B387
split-complementary
#4E40B3 #B38740 #6CB340
monochromatic
#272059 #3A3086 #4E40B3 #7367C9 #9D94D9

Accessibility & contrast

On white

7.75
#4E40B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4E40B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40B3
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40B3#FFFFFF#000000##FFFFFF
##4E40B31.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#004FB1
Tritanopia (blue-blind)
#1B5D73
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e40b3;
/* rgb */ color: rgb(78, 64, 179);
/* oklch */ color: oklch(45.6% 0.175 282.5);
Tailwind
colors: {
  custom: {
    50: '#8976cb',
    500: '#4e40b3',
    950: '#000000',
  },
}
SCSS
$custom: #4e40b3;
$custom-light: #8976cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40b3",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 247.304,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45642,
    "c": 0.17465,
    "h": 282.5
  },
  "luminance": 0.08541
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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