#4E40B8#4E40B8

#4E40B8 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 46.1% C 0.181 H 281.9°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#4E40B8
RGBrgb(78, 64, 184)
HSLhsl(247, 48%, 49%)
HSVhsv(247, 65%, 72%)
CMYKcmyk(57.6%, 65.2%, 0%, 27.8%)
CIE-LABlab(35.49, 39.73, -61.63)
CIE-LCHlch(35.49, 73.32, 302.81°)
OKLaboklab(46.07% 0.0373 -0.1772)
OKLCHoklch(46.07% 0.181 281.9)
XYZxyz(13.6243, 8.7463, 46.3084)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40B8 #AAB840
analogous
#406EB8 #4E40B8 #8A40B8
triadic
#4E40B8 #B84E40 #40B84E
tetradic
#4E40B8 #B8406E #AAB840 #40B88A
square
#4E40B8 #B8406E #AAB840 #40B88A
split-complementary
#4E40B8 #B88A40 #6EB840
monochromatic
#28205D #3B308B #4E40B8 #756ACB #9F97DB

Accessibility & contrast

On white

7.64
#4E40B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#4E40B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40B8
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40B8#FFFFFF#000000##FFFFFF
##4E40B81.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#004FB6
Tritanopia (blue-blind)
#125E76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e40b8;
/* rgb */ color: rgb(78, 64, 184);
/* oklch */ color: oklch(46.1% 0.181 281.9);
Tailwind
colors: {
  custom: {
    50: '#8a76ce',
    500: '#4e40b8',
    950: '#000000',
  },
}
SCSS
$custom: #4e40b8;
$custom-light: #8a76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40b8",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 247,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46065,
    "c": 0.18113,
    "h": 281.9
  },
  "luminance": 0.08747
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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