#4E40BA#4E40BA

#4E40BA is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.2% C 0.184 H 281.7°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#4E40BA
RGBrgb(78, 64, 186)
HSLhsl(247, 49%, 49%)
HSVhsv(247, 66%, 73%)
CMYKcmyk(58.1%, 65.6%, 0%, 27.1%)
CIE-LABlab(35.66, 40.36, -62.54)
CIE-LCHlch(35.66, 74.43, 302.84°)
OKLaboklab(46.24% 0.0371 -0.1799)
OKLCHoklch(46.24% 0.184 281.7)
XYZxyz(13.8354, 8.8307, 47.4203)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40BA #ACBA40
analogous
#406FBA #4E40BA #8B40BA
triadic
#4E40BA #BA4E40 #40BA4E
tetradic
#4E40BA #BA406F #ACBA40 #40BA8B
square
#4E40BA #BA406F #ACBA40 #40BA8B
split-complementary
#4E40BA #BA8B40 #6FBA40
monochromatic
#28215F #3B308C #4E40BA #766BCC #A099DC

Accessibility & contrast

On white

7.59
#4E40BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E40BA
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40BA#FFFFFF#000000##FFFFFF
##4E40BA1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#0D5F77
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4e40ba;
/* rgb */ color: rgb(78, 64, 186);
/* oklch */ color: oklch(46.2% 0.184 281.7);
Tailwind
colors: {
  custom: {
    50: '#8a76d0',
    500: '#4e40ba',
    950: '#000000',
  },
}
SCSS
$custom: #4e40ba;
$custom-light: #8a76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40ba",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 246.885,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46236,
    "c": 0.1837,
    "h": 281.7
  },
  "luminance": 0.08832
}

Semantic roles & 50–950 ramp

primary
#4E40BA
secondary
#C1C88E
accent
#D84FC9
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4E40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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