#4E40BD#4E40BD

#4E40BD is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.5% C 0.188 H 281.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#4E40BD
RGBrgb(78, 64, 189)
HSLhsl(247, 49%, 50%)
HSVhsv(247, 66%, 74%)
CMYKcmyk(58.7%, 66.1%, 0%, 25.9%)
CIE-LABlab(35.91, 41.31, -63.89)
CIE-LCHlch(35.91, 76.08, 302.89°)
OKLaboklab(46.5% 0.0368 -0.1839)
OKLCHoklch(46.5% 0.188 281.3)
XYZxyz(14.1577, 8.9597, 49.1176)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40BD #AFBD40
analogous
#4071BD #4E40BD #8D40BD
triadic
#4E40BD #BD4E40 #40BD4E
tetradic
#4E40BD #BD4071 #AFBD40 #40BD8D
square
#4E40BD #BD4071 #AFBD40 #40BD8D
split-complementary
#4E40BD #BD8D40 #71BD40
monochromatic
#282162 #3B318F #4E40BD #786DCD #A29ADD

Accessibility & contrast

On white

7.52
#4E40BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#4E40BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40BD
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40BD#FFFFFF#000000##FFFFFF
##4E40BD1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#0050BB
Tritanopia (blue-blind)
#026079
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4e40bd;
/* rgb */ color: rgb(78, 64, 189);
/* oklch */ color: oklch(46.5% 0.188 281.3);
Tailwind
colors: {
  custom: {
    50: '#8b76d2',
    500: '#4e40bd',
    950: '#000000',
  },
}
SCSS
$custom: #4e40bd;
$custom-light: #8b76d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40bd",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 246.72,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46495,
    "c": 0.18753,
    "h": 281.3
  },
  "luminance": 0.08961
}

Semantic roles & 50–950 ramp

primary
#4E40BD
secondary
#C3C990
accent
#D94FC9
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4E40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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