#4E40BB#4E40BB

#4E40BB is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.3% C 0.185 H 281.5°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#4E40BB
RGBrgb(78, 64, 187)
HSLhsl(247, 49%, 49%)
HSVhsv(247, 66%, 73%)
CMYKcmyk(58.3%, 65.8%, 0%, 26.7%)
CIE-LABlab(35.74, 40.68, -62.99)
CIE-LCHlch(35.74, 74.98, 302.85°)
OKLaboklab(46.32% 0.037 -0.1812)
OKLCHoklch(46.32% 0.185 281.5)
XYZxyz(13.9421, 8.8734, 47.9821)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40BB #ADBB40
analogous
#4070BB #4E40BB #8C40BB
triadic
#4E40BB #BB4E40 #40BB4E
tetradic
#4E40BB #BB4070 #ADBB40 #40BB8C
square
#4E40BB #BB4070 #ADBB40 #40BB8C
split-complementary
#4E40BB #BB8C40 #70BB40
monochromatic
#282160 #3B308D #4E40BB #776CCD #A199DC

Accessibility & contrast

On white

7.57
#4E40BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#4E40BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40BB
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40BB#FFFFFF#000000##FFFFFF
##4E40BB1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#0050B9
Tritanopia (blue-blind)
#095F78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4e40bb;
/* rgb */ color: rgb(78, 64, 187);
/* oklch */ color: oklch(46.3% 0.185 281.5);
Tailwind
colors: {
  custom: {
    50: '#8b76d0',
    500: '#4e40bb',
    950: '#000000',
  },
}
SCSS
$custom: #4e40bb;
$custom-light: #8b76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40bb",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 246.829,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46322,
    "c": 0.18497,
    "h": 281.5
  },
  "luminance": 0.08874
}

Semantic roles & 50–950 ramp

primary
#4E40BB
secondary
#C2C88F
accent
#D94FC9
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4E40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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